Skip to content

Commit d793f7e

Browse files
committed
README
1 parent 0e974f0 commit d793f7e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ Features ![Build Status](https://travis-ci.org/dcodeIO/bcrypt.js.png?branch=mast
1313
* Small footprint
1414
* Closure Compiler [externs included](https://github.com/dcodeIO/bcrypt.js/blob/master/externs/bcrypt.js)
1515

16+
Security considerations
17+
-----------------------
18+
Besides incorporating a salt to protect against rainbow table attacks, bcrypt is an adaptive function: over time, the
19+
iteration count can be increased to make it slower, so it remains resistant to brute-force search attacks even with
20+
increasing computation power. ([see](http://en.wikipedia.org/wiki/Bcrypt))
21+
22+
While bcrypt.js is compatible to the C++ bcrypt binding, it is written in pure JavaScript and thus slower, effectively
23+
reducing the number of iterations that can be processed in an equal time span.
24+
1625
Usage
1726
-----
1827

dist/bcrypt.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"scripts": {
3939
"test": "node node_modules/testjs/bin/testjs",
4040
"build": "preprocess ./src/bcrypt.js ./src > ./dist/bcrypt.js",
41-
"compile": "ccjs dist/bcrypt.js --warning_level=VERBOSE --compilation_level=ADVANCED_OPTIMIZATIONS --externs=externs/minimal-env.js > dist/bcrypt.min.js",
41+
"compile": "ccjs dist/bcrypt.js --warning_level=VERBOSE --compilation_level=ADVANCED_OPTIMIZATIONS --externs=externs/minimal-env.js --output_wrapper=\"(function(){%output%})();\" > dist/bcrypt.min.js",
4242
"make": "npm run-script build && npm run-script compile && npm test"
4343
}
4444
}

0 commit comments

Comments
 (0)