cryptChaine
def cryptChaine(to_crypt,table,base)
Algorithm
The simple method to crypt an ascii string as integer list.
Parameters |
Type |
Description |
to_crypt |
int list |
The converted int list since an ascii string |
table |
list of list |
An array containing all fully builded Base Table |
base |
int |
Define the Base index |
- Returns
str list : A string list containing all the base crypted values. Must be used as a crypted list.
Source Code
res = []
for i in range(0,len(to_crypt)):
res.append(table[base][to_crypt[i]])
return res