crypt_final
def crypt_final(tuple,int_chaine)
Algorithm
The layout procedure to organise crypting results.
Parameters |
Type |
Description |
tuple |
tuple |
List couple representing the crypted strin and the associated key |
- Returns
str : The crypted list as a string with correct separators
Source Code
sept=['!','"','#','$','%','&','(',')','*','+',',','-','.','/']
res = ''
sep =sept[int(int_chaine[1]*m.cos(int_chaine[0]))%13]
crypt=tuple[0]
key=tuple[1]
for i in range (0,len(crypt)):
res+=sep+str(crypt[i])
sep=cyclik_ascii(sep)
return res