Class that manages cryptography. It allow you to encrypt/decrypt things using one of the implemented cyphers. (Now there’s just blowfish)
Class that manages cryptography. | |
Sets the cypher to be used. | |
Encodes the text passed with key | |
Decodes a base64 encoded string to the original one, if key is correct | |
Sets the random number generator function to be a custom one. |
Sets the cypher to be used.
p.setCypher = function ( cypher )
Encodes the text passed with key
p.encode = function ( str, key )
Decodes a base64 encoded string to the original one, if key is correct
p.decode = function ( code, key )
Sets the random number generator function to be a custom one.
p.setCustomRandomGenerator = function ( rand )