Browse Source

Initial commit

master
Emil Bay 7 years ago
commit
68ce425f4e
No known key found for this signature in database GPG Key ID: AF1CF37B90FBF638
  1. 5
      LICENSE
  2. 28
      README.md
  3. 6
      example.js
  4. 26
      package.json

5
LICENSE

@ -0,0 +1,5 @@
Copyright (c) 2017, Emil Bay github@tixz.dk
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

28
README.md

@ -0,0 +1,28 @@
# `blake2b`
> Blake2b (64-bit version) in pure Javascript
## Usage
```js
var blake2b = require('blake2b')
var output = new Uint8Array(64)
var input = Buffer.from('hello world')
blake2b(output, input)
```
## API
### `blake2b(out, input, [key], [salt], [personal])`
## Install
```sh
npm install blake2b
```
## License
[ISC](LICENSE.md)

6
example.js

@ -0,0 +1,6 @@
var blake2b = require('./index.js')
var output = new Uint8Array(64)
var input = Buffer.from('hello world')
blake2b(out, input)

26
package.json

@ -0,0 +1,26 @@
{
"name": "blake2b",
"version": "0.0.0",
"description": "Blake2b (64-bit version) in pure Javascript",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"tape": "^4.6.3"
},
"scripts": {
"test": "tape test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/emilbayes/blake2b.git"
},
"keywords": [
],
"author": "Emil Bay <github@tixz.dk>",
"license": "Proprietary",
"bugs": {
"url": "https://github.com/emilbayes/blake2b/issues"
},
"homepage": "https://github.com/emilbayes/blake2b#readme"
}
Loading…
Cancel
Save