Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

jQuery plugin to return a hash for a string using SHA 1/256/384/512 and the web crypto api

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 api

demo: 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)
});

```