From 68ce425f4eccae85852c34a4fac891c203b245d3 Mon Sep 17 00:00:00 2001 From: Emil Bay Date: Mon, 29 May 2017 12:27:50 +0200 Subject: [PATCH] Initial commit --- LICENSE | 5 +++++ README.md | 28 ++++++++++++++++++++++++++++ example.js | 6 ++++++ package.json | 26 ++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 example.js create mode 100644 package.json diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1442abf --- /dev/null +++ b/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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3497413 --- /dev/null +++ b/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) diff --git a/example.js b/example.js new file mode 100644 index 0000000..f170ea6 --- /dev/null +++ b/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) diff --git a/package.json b/package.json new file mode 100644 index 0000000..0b93711 --- /dev/null +++ b/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 ", + "license": "Proprietary", + "bugs": { + "url": "https://github.com/emilbayes/blake2b/issues" + }, + "homepage": "https://github.com/emilbayes/blake2b#readme" +}