Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bcrypt-util

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcrypt-util

A simple command-line utility to generate a BCrypt hash

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

| bcrypt-util | | > Command-line utility for bcrypt | |____________________________________|

INSTALLATION

$ npm install -g bcrypt-util

USAGE

Generate a BCrypt hash:

$ bcrypt hash 'raw text' $2a$10$O.YQ9gpS1ruOIBECVs5cFe9znc1NspGnRZJ.NRZtgxGkJqgSqlgTG

$ bcrypt hash 'raw text' 10 $2a$10$O.YQ9gpS1ruOIBECVs5cFe9znc1NspGnRZJ.NRZtgxGkJqgSqlgTG

Compare a BCrypt hash:

$ bcrypt compare 'raw text' '$2a$10$O.YQ9gpS1ruOIBECVs5cFe9znc1NspGnRZJ.NRZtgxGkJqgSqlgTG' true

TESTING

$ make test

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. (https://en.wikipedia.org/wiki/Bcrypt)

LICENSE

MIT

Keywords

FAQs

Package last updated on 23 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc