Skip to content

Friendly amendments to pull #15 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
default: website/miniLockLib.js website/tests.js website/index.js website/annotated_code.js website/annotated_code .window_tests_address

# Create a standalone copy of miniLockLib.js in the website folder for use in web agent windows.
website/miniLockLib.js: library/%.coffee library.compiled/scrypt-async.js
website/miniLockLib.js: library/%.coffee
browserify library.compiled/index.js --standalone miniLockLib > website/miniLockLib.js

# Compile CoffeeScript library files to the library.compiled folder.
library/%.coffee:
coffee --compile --output library.compiled library/*.coffee

# Download scrypt-async.js and save it in the library.compiled folder.
library.compiled/scrypt-async.js:
curl -s https://raw.githubusercontent.com/dchest/scrypt-async-js/master/scrypt-async.js \
> library.compiled/scrypt-async.js

# # Tests

# Compile CoffeeScript tests to the tests.compiled folder.
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ Pass `data` and `keys` when you `decrypt` a file:

__Digging In__

You will need [GNU Make](https://www.gnu.org/software/make/) and [Node.js](https://nodejs.org/en/) on your computer to compile, run and test the code in this project. If you can run `make --version` and `node --version` without errors on the command line then you should be all set. If you don’t already have a copy Node.js, we recommend you [download the installer for your operating system](https://nodejs.org/en/download/) from the official website.

`git clone https://github.com/45678/miniLockLib.git` to get the source code.

`cd miniLockLib`

`npm install` to download the dependencies defined in `package.json`.

`make` to compile [CoffeeScript](http://www.coffeescript.org/) files into [ECMAScript](http://www.ecmascript.org/) files in the `library.compiled`, `tests.compiled` and `website` folders.

`make clean` to start over.
`make clean` to remove all generated files and start over.

`npm start` to automatically re-compile source files as you make changes.

Expand Down
2 changes: 1 addition & 1 deletion library.compiled/KeyPairOperation.js

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

2 changes: 1 addition & 1 deletion library.compiled/index.js

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

2 changes: 1 addition & 1 deletion library/KeyPairOperation.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = class KeyPairOperation
BLAKE2s = require "./BLAKE2s"
NaCl = require "tweetnacl"
scrypt = require "./scrypt-async"
scrypt = require "scrypt-async"
EmailAddress = require "./EmailAddress"
SecretPhrase = require "./SecretPhrase"

Expand Down
2 changes: 1 addition & 1 deletion library/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ miniLockLib.BLAKE2s = require "./BLAKE2s"
miniLockLib.Entropizer = require "entropizer"
miniLockLib.NaCl = require "tweetnacl"
miniLockLib.NaCl.stream = require("nacl-stream").stream
miniLockLib.scrypt = require "./scrypt-async"
miniLockLib.scrypt = require "scrypt-async"
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
"repository": "git+https://github.com/45678/miniLockLib.git",
"dependencies": {
"base-58": "0.0.x",
"blake2s-js": "1.0.3",
"entropizer": "^0.1.3",
"nacl-stream": "0.3.3",
"tweetnacl": "0.12.x"
"blake2s-js": "1.0.x",
"entropizer": "0.1.x",
"nacl-stream": "0.3.x",
"scrypt-async": "1.2.x",
"tweetnacl": "0.13.x"
},
"devDependencies": {
"browserify": "5.9.x",
"coffee-script": "1.8.x",
"browserify": "13.0.x",
"coffee-script": "1.10.x",
"docco": "^0.7.0",
"tape": "4.4.x",
"http-server": "^0.9.0",
"tape": "2.14.x",
"wr": "1.3.x"
Expand Down