https://github.com/linkgod/sha-1
This is a SHA-1 hash generator by JavaScript.
https://github.com/linkgod/sha-1
javascript sha-1
Last synced: 8 months ago
JSON representation
This is a SHA-1 hash generator by JavaScript.
- Host: GitHub
- URL: https://github.com/linkgod/sha-1
- Owner: linkgod
- License: mit
- Created: 2013-03-21T13:26:48.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T08:45:22.000Z (over 5 years ago)
- Last Synced: 2024-04-23T19:24:34.424Z (over 1 year ago)
- Topics: javascript, sha-1
- Language: JavaScript
- Homepage: https://linkgod.github.io/SHA-1/
- Size: 123 KB
- Stars: 12
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SHA-1
[](https://npmcharts.com/compare/sha-1?minimal=true) [](https://www.npmjs.com/package/sha-1) [](https://www.npmjs.com/package/sha-1)
This is a SHA-1 hash generator by JavaScript.
## Live Demo
For a live demo, visit: [https://linkgod.github.io/SHA-1/](https://linkgod.github.io/SHA-1/)
## Get started
You can use the package in Node
```
$ npm install sha-1
``````js
var sha1 = require('sha-1');
sha1('hello') // aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
```You can also use [bower](http://bower.io/) to install the component:
```
$ bower install SHA-1
``````js
sha1('hello') // aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
```
If you use RequireJS```js
require(['./sha1'], function(sha1){
sha1('hello'); // aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
});
```## License
Licensed under [MIT](./LICENSE)