https://github.com/imyller/node-bcryptjs-cli
Command line interface for bcryptjs
https://github.com/imyller/node-bcryptjs-cli
Last synced: about 1 year ago
JSON representation
Command line interface for bcryptjs
- Host: GitHub
- URL: https://github.com/imyller/node-bcryptjs-cli
- Owner: imyller
- License: mit
- Created: 2016-06-23T09:12:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T17:58:01.000Z (about 10 years ago)
- Last Synced: 2025-06-28T16:18:40.501Z (about 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-bcryptjs-cli
=================
[](https://travis-ci.org/imyller/node-bcryptjs-cli)
[](http://badge.fury.io/js/bcryptjs-cli)
[](https://nodei.co/npm/bcryptjs-cli/)
[](https://nodei.co/npm-dl/bcryptjs-cli/)
> The [`bcryptjs`](https://github.com/dcodeIO/bcrypt.js) command line interface.
Install this globally and you'll have access to the `bcryptjs` command anywhere on your system.
```
npm install -g bcryptjs-cli
```
## Usage
```
$ bcryptjs
usage: bcryptjs [salt rounds]
```
```
$ bcryptjs mypassword
$2a$10$ckDge4zC6brAIMtM9x47zeG56MxG7UuaVzboIP0jkHuJP7d6jIEti
```
```
$ bcryptjs mypassword 12
$2a$12$1L/qFa8UKvJ9uNFoELuiDOh0rDc5ren1QnymTtD7QYpVfp4TVzFum
```
## Security considerations
Besides incorporating a salt to protect against rainbow table attacks, bcrypt is an adaptive function: over time, the
iteration count can be increased to make it slower, so it remains resistant to brute-force search attacks even with
increasing computation power. ([see](http://en.wikipedia.org/wiki/Bcrypt))
The maximum input length is 72 bytes (note that UTF8 encoded characters use up to 4 bytes) and the length of generated
hashes is 60 characters.
## Testing
```sh
$ npm test
```
## Contributing
You can find the repository at:
https://github.com/imyller/node-bcryptjs-cli
Issues/Feature Requests can be submitted at:
https://github.com/imyller/node-bcryptjs-cli/issues
I'd really like to hear your feedback, and I'd love to receive your pull-requests!
## Copyright
Copyright 2016 Ilkka Myller. This software is licensed under the MIT License, see `LICENSE` for details.