Projekt

Obecné

Profil

Stáhnout (1.48 KB) Statistiky
| Větev: | Revize:
1
# hash.js [![Build Status](https://secure.travis-ci.org/indutny/hash.js.svg)](http://travis-ci.org/indutny/hash.js)
2

    
3
Just a bike-shed.
4

    
5
## Install
6

    
7
```sh
8
npm install hash.js
9
```
10

    
11
## Usage
12

    
13
```js
14
var hash = require('hash.js')
15
hash.sha256().update('abc').digest('hex')
16
```
17

    
18
## Selective hash usage
19

    
20
```js
21
var sha512 = require('hash.js/lib/hash/sha/512');
22
sha512().update('abc').digest('hex');
23
```
24

    
25
#### LICENSE
26

    
27
This software is licensed under the MIT License.
28

    
29
Copyright Fedor Indutny, 2014.
30

    
31
Permission is hereby granted, free of charge, to any person obtaining a
32
copy of this software and associated documentation files (the
33
"Software"), to deal in the Software without restriction, including
34
without limitation the rights to use, copy, modify, merge, publish,
35
distribute, sublicense, and/or sell copies of the Software, and to permit
36
persons to whom the Software is furnished to do so, subject to the
37
following conditions:
38

    
39
The above copyright notice and this permission notice shall be included
40
in all copies or substantial portions of the Software.
41

    
42
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
43
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
45
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
46
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
47
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
48
USE OR OTHER DEALINGS IN THE SOFTWARE.
(3-3/4)