thyHash

Class that manages cryptography hash.  It allow you to hash things using one of the implemented cyphers.  (Now there’s just MD5)

Summary
Class that manages cryptography hash.
Sets the cypher to be used.
Returns the base64 encoded hash of str

setCypher

p.setCypher = function (cypher)

Sets the cypher to be used.  Note that this method will call library include method, meaning that the the cypher will be available only on next run.

The only available cypher at the moment is blowfish.  (Rijndael comming...)

Parameter

cypherThe cypher type

encode

p.encode = function (str,
key)

Returns the base64 encoded hash of str

Parameters

strThe text to be encoded

Returns

Base64 encoded string

p.setCypher = function (cypher)
Sets the cypher to be used.
p.encode = function (str,
key)
Returns the base64 encoded hash of str