Skip to content

Commit

Permalink
Merge branch 'release/3.1.2-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanvosberg committed Nov 22, 2013
2 parents 59e465a + 971c57a commit 473191f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,40 @@ Requirements:
npm install crypto-js
```

### USE
### Usage

Modular include:
```javascript
var AES = require("crypto-js/aes");
var SHA256 = require("crypto-js/sha256");
...
console.log(SHA256("Message"));
```

Including all libraries, for access to extra methods:
```javascript
var CryptoJS = require("crypto-js");
console.log(CryptoJS.HmacSHA1("Message", "Key"));
```

## Client (browser)

### USE
### Usage

Modular include:
```javascript
require(["crypto-js/aes", "crypto-js/sha256"], function (AES, SHA256) {
console.log(SHA256("Message"));
});
```

Including all libraries, for access to extra methods:
```javascript
require("crypto-js", function (CryptoJS) {
console.log(CryptoJS.HmacSHA1("Message", "Key"));
});
```

## API

See: https://code.google.com/p/crypto-js
See: https://code.google.com/p/crypto-js
Binary file modified build/crypto-js.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "crypto-js",
"title": "crypto-js",
"description": "Modularized port of googlecode project crypto-js.",
"version": "3.1.2-1",
"version": "3.1.2-2",
"homepage": "http://github.com/evanvosberg/crypto-js",
"author": {
"name": "Evan Vosberg",
Expand Down

0 comments on commit 473191f

Please sign in to comment.