Wrapper around googlecode's crypto-js
Usage
Parse
Parse a string in a particular encoding into a CryptoJS object.
In-ports
- ENCODING: the encoding, which could be 'Hex', 'Latin1', or 'Utf8'. Default is 'Utf8'.
- IN: the incoming string to parse
Out-ports
- OUT: a CryptoJS object
Stringify
Stringify a CryptoJS object into a string in the desired encoding.
In-ports
- ENCODING: the encoding, which could be 'Hex', 'Latin1', or 'Utf8' Default is 'Utf8'.
- IN: A CryptoJS object returned by 'Parse'
Out-ports
- OUT: a string in the said encoding
Examples
Encode a string in English into Hex string.
'Hex' -> ENCODING ToHex(crypto/Stringify)
'I am so excited to be encoded.' -> IN ToCrypto(crypto/Parse) OUT -> IN ToHex() OUT -> IN Output(Output)