Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 674 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 674 Bytes

crypto-js

Modularized port of googlecode project crypto-js.

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install crypto-js

Usage

Modular include:

var AES = require("crypto-js/aes");
var SHA256 = require("crypto-js/sha256");
...
console.log(SHA256("Message"));

Including all libraries, for access to extra methods:

var CryptoJS = require("crypto-js");
console.log(CryptoJS.HmacSHA1("Message", "Key"));

Client (browser)

USE

require(["crypto-js/aes", "crypto-js/sha256"], function (AES, SHA256) {

});

API

See: https://code.google.com/p/crypto-js