Skip to content

Commit

Permalink
Update deps, remove bower, add Unlicense, add yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
dchest committed Apr 25, 2017
1 parent 07d7f53 commit 2dd7f80
Show file tree
Hide file tree
Showing 8 changed files with 420 additions and 46 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.travis.yml
bower.json
bower_components
test
demo
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nacl-stream: streaming encryption based on TweetNaCl.js
=======================================================

Written by Dmitry Chestnykh in 2014. Public domain.
Written by Dmitry Chestnykh in 2014. Public domain.
<https://github.com/dchest/nacl-stream-js>

Based on
Expand Down Expand Up @@ -59,7 +59,7 @@ with encrypted chunk.
If encrypting the last chunk of stream, `isLast` must be set to `true`.

#### *encryptor*.clean()

Zeroes out temporary space. Should be called after encrypting all chunks.

### stream.createDecryptor(key, nonce, maxChunkLength)
Expand All @@ -83,7 +83,7 @@ chunks.
If decrypting the last chunk of stream, `isLast` must be set to `true`.

#### *decryptor*.clean()

Zeroes out temporary space. Should be called after decrypting all chunks.

#### stream.readChunkLength(data[, offset])
Expand Down
33 changes: 0 additions & 33 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion nacl-stream.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nacl-stream",
"version": "0.3.3",
"version": "0.3.4",
"description": "Streaming encryption based on TweetNaCl.js",
"main": "nacl-stream.js",
"directories": {
Expand All @@ -24,17 +24,18 @@
"file"
],
"author": "Dmitry Chestnykh",
"license": "Public domain",
"license": "Unlicense",
"bugs": {
"url": "https://github.com/dchest/nacl-stream-js/issues"
},
"homepage": "https://github.com/dchest/nacl-stream-js",
"devDependencies": {
"faucet": "0.x.x",
"tape": "2.x.x",
"uglify-js": "2.x.x"
"faucet": "^0.0.1",
"tape": "^4.6.3",
"tweetnacl-util": "^0.15.0",
"uglify-js": "^2.8.22"
},
"dependencies": {
"tweetnacl": "0.x.x"
"tweetnacl": "^1.0.0-rc.1"
}
}
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
'use strict';

var test = require('tape');
var nacl = require('tweetnacl/nacl-fast');
var nacl = require('tweetnacl');
nacl.util = require('tweetnacl-util');
var naclStream = require('../nacl-stream').stream;
var byteSequence = require('./utils').byteSequence;

Expand Down
Loading

0 comments on commit 2dd7f80

Please sign in to comment.