Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Nov 25, 2020
2 parents c28f1d2 + 25c8133 commit 303216c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BCrypt Module for the ColdBox Framework [![Build Status](https://travis-ci.org/coldbox-modules/bcrypt.svg?branch=development)](https://travis-ci.org/coldbox-modules/bcrypt)
# BCrypt Module for the ColdBox Framework [![Build Status](https://travis-ci.com/coldbox-modules/bcrypt.svg?branch=development)](https://travis-ci.com/coldbox-modules/bcrypt)

BCrypt's primary usage would be for the secure hashing of passwords. The hashing method provides a high level of security, but also makes it too slow use as a simple digest. It is also not reversible, and therefore is not suitable for encrypting transmission data.

Expand Down
38 changes: 19 additions & 19 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name" : "BCrypt",
"version" : "3.0.0",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/bcrypt/@build.version@/[email protected]@.zip",
"author" : "Ortus Solutions <[email protected]>",
"homepage" : "https://github.com/coldbox-modules/bcrypt",
"documentation" : "https://github.com/coldbox-modules/bcrypt",
"repository" :{
"type" : "git",
"url" : "https://github.com/coldbox-modules/bcrypt"
"name":"BCrypt",
"version":"3.0.1",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/bcrypt/@build.version@/[email protected]@.zip",
"author":"Ortus Solutions <[email protected]>",
"homepage":"https://github.com/coldbox-modules/bcrypt",
"documentation":"https://github.com/coldbox-modules/bcrypt",
"repository":{
"type":"git",
"url":"https://github.com/coldbox-modules/bcrypt"
},
"bugs" : "https://ortussolutions.atlassian.net/secure/RapidBoard.jspa?projectKey=CCM",
"slug" : "BCrypt",
"shortDescription": "A ColdBox module for BCrypt. Creates cryptographically strong (and slow) password hashes.",
"type" : "modules",
"contributors" :[
"bugs":"https://ortussolutions.atlassian.net/secure/RapidBoard.jspa?projectKey=CCM",
"slug":"BCrypt",
"shortDescription":"A ColdBox module for BCrypt. Creates cryptographically strong (and slow) password hashes.",
"type":"modules",
"contributors":[
"Seth Feldkamp",
"Brad Wood <[email protected]>",
"Luis Majano <[email protected]>",
Expand All @@ -23,11 +23,11 @@
"**/.*",
"tests",
"*/.md"
],
"dependencies" :{
"cbjavaloader": "^2.0.0"
},
"scripts":{
],
"dependencies":{
"cbjavaloader":"^2.0.0"
},
"scripts":{
"release":"recipe build/release.boxr",
"format":"cfformat run *.cfc,models/,test-harness/tests/specs",
"format:watch":"cfformat watch *.cfc,models/,test-harness/tests/specs ./.cfformat.json",
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

----

## [3.0.1] => 2020-NOV-25

### Fixed

* @wpdebruin <[email protected]> - enabled `workfactor` to be used in `hashPassword()`

----

## [3.0.0] => 2020-NOV-1

### Added
Expand Down
4 changes: 2 additions & 2 deletions models/BCrypt.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ component singleton threadsafe{
string function hashPassword(
required string password,
workFactor=variables.settings.workFactor,
salt =generateSalt()
salt =generateSalt( arguments.workFactor )
){
return variables.bcrypt.hashpw( arguments.password, arguments.salt );
}
Expand Down Expand Up @@ -107,4 +107,4 @@ component singleton threadsafe{
private boolean function isBCryptLoaded(){
return !isNull( variables.bcrypt );
}
}
}

0 comments on commit 303216c

Please sign in to comment.