Bcrypt password hashing in Perl6
C Roff Assembly Perl6 Other
Switch branches/tags
Nothing to show
Pull request Compare This branch is 91 commits ahead of dwarring:master.
Latest commit cba10d2 Apr 29, 2017 @skinkade committed on GitHub Merge pull request #4 from samcv/SPDX-license
Use SPDX identifier in license field of META6.json
Permalink
Failed to load latest commit information.
ext/crypt_blowfish-1.3
lib/Crypt Version bump Apr 24, 2016
t Update crypt_blowfish to 1.3, switch to 2b hash prefix Apr 10, 2016
.gitignore Make README more consistent with Crypt::Argon2 Apr 24, 2016
.travis.yml Travis buildscript command order Apr 10, 2016
Build.pm Remove Windows from master Apr 24, 2016
Configure.pl6 update Configure for change to Makefile location Aug 24, 2015
LICENSE Update docs; plan Windows support Apr 10, 2016
META6.json Use SPDX identifier in license field of META6.json Apr 28, 2017
Makefile.in Update crypt_blowfish to 1.3, switch to 2b hash prefix Apr 10, 2016
README.md Teeny tiny typo Apr 26, 2017

README.md

Crypt::Bcrypt

Build Status

Easy bcrypt password hashing in Perl6.

Synopsis

Password hashing and verification are one function each, and utilize a crypt()-style output string:

> use Crypt::Bcrypt;

> my $hash = bcrypt-hash("password")
$2b$12$EFUDTFQAf/6YwmnN/FKyX.kH0BsE/YNExuIQcI1WZXO/rwkmD8G2S

> bcrypt-match("password", $hash)
True

> bcrypt-match("wrong", $hash)
False

> bcrypt-hash("password", :rounds(15))
$2b$15$BcxIqbIcb1bDt3SHkEjO/ePcdeNV8f2xeFSQTyoiidYGUA03lptrm

Credit

This module uses the Openwall crypt_blowfish library by Solar Designer. See http://www.openwall.com/crypt/ and the header of crypt_blowfish.c for details.

License

The Openwall library is licensed and redistributed under the terms outlined in the header of crypt_blowfish.c. Any modifications are released under the same terms.

This module is released under the terms of the ISC License. See the LICENSE file for details.