2017 © Pedro Peláez
 

library bcrypt-generator

Generate bcrypt hashes from the command line

image

robertboloc/bcrypt-generator

Generate bcrypt hashes from the command line

  • Friday, March 14, 2014
  • by robertboloc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BcryptGenerator

Command line bcrypt hash generator. Useful for computing bcrypt hashes while developing., (*1)

Installation

  1. Add this package to your composer.json file, in the require-dev section
    {
        "require-dev": {
            "robertmarsal/bcrypt-generator": "dev-master"
        }
    }
  1. Run composer update

This will install the script into vendor/bin/bcrypt_generator.php, (*2)

Usage

Execute the CLI script providing some/all of the following options :, (*3)

--help | -h Get usage information.
--text | -t Text to get hashed., (*4)

For example calling the script using the -t option:, (*5)

php vendor/bin/bcrypt_generator.php -t admin

Will output something like:, (*6)

$2y$14$foQAf3JxtdeRCwYVXiH6DOJqPb1fnqD79NZOsj.2q3lIxMNYCVgXK

Notes

If you use this with a real password add a space before the php call to avoid the command showing in your shell's history., (*7)

The Versions

14/03 2014

dev-master

9999999-dev https://github.com/robertboloc/https://github.com/robertboloc/bcrypt-generator

Generate bcrypt hashes from the command line

  Sources   Download

MIT

The Requires

 

zf2 generator bcrypt