FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

CFWheels bCrypt

cfwheels-bcrypt

Build Status

CFWheels 2.x plugin helper methods for the bCrypt Java Lib

Note, this plugin requires CFWheels 2.x due to the automatic java mapping

Usage

Encrypt a password

password = "CatzAreBetterThanDogz";

// Hash a password for the first time
hashedPassword   = bCryptHashPW(password, bCryptGenSalt());

// With different complexity:
// gensalt's log_rounds parameter determines the complexity
// the work factor is 2**log_rounds, and the default is 10
hashedPassword   = bCryptHashPW(password, bCryptGenSalt(12));

Compared hashed password

// Check that an unencrypted password matches one that has
// previously been hashed
result = bCryptCheckPW(candidate,hashed);

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Download
1.0.2 May 16 2017 09:03 AM May 16 2017 09:03 AM Tom King (neokoenig)
1.0.1 May 15 2017 07:28 AM May 15 2017 07:28 AM Tom King (neokoenig)
1.0.0 May 03 2017 04:23 AM May 03 2017 04:23 AM Tom King (neokoenig)

 

  •   Tom King
  • Published
  • 1.0.2 is the latest of 3 release(s)
    Published
  • Published on May 16 2017 09:03 AM
No collaborators yet.
 
  • May 03 2017 04:22 AM
  • May 16 2017 09:03 AM
  • 795
  • 0
  • 42