ATTENTION: This repo is an outdated fork of the original linkgod/SHA-1 repo. In July, 2021, while upgrading rscom-ui
from Angular 10 to 11, by eliminating the dependency on RepublicServicesRepository/angulartics, the indirect dependency on this repo was removed. No other repos depend on this repo - either directly or indirectly. Hence, this repo is being archived.
This is a SHA-1 hash generator by JavaScript.
You can use bower to install the component:
$ bower install SHA-1
sha1('hello') // aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
If you use RequireJS
require(['./sha1'], function(sha1){
sha1('hello'); // aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
});
You can also use the package in Node
$ npm install sha-1
$ node
> sha1 = require('./sha1')
{ [Function] sha1: [Circular] }
> sha1('hello')
'aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d'
Licensed under MIT