Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including noflo-crypto with all npm packages installed. Try it out:

var nofloCrypto = require("noflo-crypto")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

noflo-crypto v0.2.3

Wrapper around googlecode's crypto-js

crypto Build Status

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)
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free