thyBlowfish

Blowfish cypher class.

Algorithm gently taken from i-code.co.uk.  Thanks Stephen!

thyAPI adaptation from Raphael Pereira.

Summary
Blowfish cypher class.
Encodes the text passed with key
Decodes a base64 encoded string to the original one, if key is correct

encode

p.encode = function (str,
pass)

Encodes the text passed with key

Parameters

strThe text to be encoded
passThe key to be used to encode the text

Returns

Base64 encoded string

decode

p.decode = function (code,
pass,
init)

Decodes a base64 encoded string to the original one, if key is correct

Parameters

codeThe cyphered code
passThe key to be used
initThe base64 initialization int
p.encode = function (str,
pass)
Encodes the text passed with key
p.decode = function (code,
pass,
init)
Decodes a base64 encoded string to the original one, if key is correct