Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angeal185/jquery-hash
jQuery plugin to return a hash for a string using SHA 1/256/384/512 and the web crypto api
https://github.com/angeal185/jquery-hash
base64 hash hex jquery jquery-plugin sha1 sha256 sha384 sha512 webcrypto webcrypto-api
Last synced: about 1 month ago
JSON representation
jQuery plugin to return a hash for a string using SHA 1/256/384/512 and the web crypto api
- Host: GitHub
- URL: https://github.com/angeal185/jquery-hash
- Owner: angeal185
- License: mit
- Created: 2019-04-27T08:52:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T09:51:16.000Z (over 5 years ago)
- Last Synced: 2024-10-01T16:48:02.987Z (about 2 months ago)
- Topics: base64, hash, hex, jquery, jquery-plugin, sha1, sha256, sha384, sha512, webcrypto, webcrypto-api
- Homepage: https://angeal185.github.io/jquery-hash
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-hash
jQuery plugin to return a hash for a string using SHA 1/256/384/512 and the web crypto apidemo: https://angeal185.github.io/jquery-hash
### Installation
npm
```sh
$ npm install jquery-hash --save
```#### browser
```html
```
### info
```js
// demo/**
* $.hash(str, digest, enc, cb)
* @param {string} str ~ string to be hashed
* @param {string} digest ~ 1/256/384/512
* @param {string} enc ~ hex/base64/Uint8
* @param {function} cb ~ callback
*/$.hash('hello world!', '512', 'hex',function(i){
console.log(i)
});```