JSPM

bcryptjs-cli

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 151
  • Score
    100M100P100Q80520F
  • License MIT

Command line interface for bcryptjs

Package Exports

  • bcryptjs-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bcryptjs-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-bcryptjs-cli

Build Status npm version

NPM NPM

The bcryptjs 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 <string> [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)

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

$ 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 2016 Ilkka Myller. This software is licensed under the MIT License, see LICENSE for details.