slurp4

def slurp4(chaine)

Algorithm

This method is similar of the slurp2 method. It defined a third level of crypting management.

Parameters

Type

Description

chaine

str

The raw string crypted message

Returns

str list : The list of crypted terms rebuilded from the raw string.


Source Code

tmp=''
res = []
sep=['A','B','C','D','E','F','G','H','I','J','K','L']
for elem in chaine:
        if(not elem in sep):
                tmp+=str(elem)
        else:
                res.append(tmp)
                tmp=''
        if(elem==''):
                break
res.append(tmp)
return res