FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...
CFWheels 2.x plugin helper methods for the bCrypt Java Lib
Note, this plugin requires CFWheels 2.x due to the automatic java mapping
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));
// 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.