Skip to content

Commit 303216c

Browse files
committed
Merge branch 'development'
2 parents c28f1d2 + 25c8133 commit 303216c

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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)
1+
# 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)
22

33
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.
44

box.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"name" : "BCrypt",
3-
"version" : "3.0.0",
4-
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/bcrypt/@build.version@/[email protected]@.zip",
5-
"author" : "Ortus Solutions <[email protected]>",
6-
"homepage" : "https://github.com/coldbox-modules/bcrypt",
7-
"documentation" : "https://github.com/coldbox-modules/bcrypt",
8-
"repository" :{
9-
"type" : "git",
10-
"url" : "https://github.com/coldbox-modules/bcrypt"
2+
"name":"BCrypt",
3+
"version":"3.0.1",
4+
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/bcrypt/@build.version@/[email protected]@.zip",
5+
"author":"Ortus Solutions <[email protected]>",
6+
"homepage":"https://github.com/coldbox-modules/bcrypt",
7+
"documentation":"https://github.com/coldbox-modules/bcrypt",
8+
"repository":{
9+
"type":"git",
10+
"url":"https://github.com/coldbox-modules/bcrypt"
1111
},
12-
"bugs" : "https://ortussolutions.atlassian.net/secure/RapidBoard.jspa?projectKey=CCM",
13-
"slug" : "BCrypt",
14-
"shortDescription": "A ColdBox module for BCrypt. Creates cryptographically strong (and slow) password hashes.",
15-
"type" : "modules",
16-
"contributors" :[
12+
"bugs":"https://ortussolutions.atlassian.net/secure/RapidBoard.jspa?projectKey=CCM",
13+
"slug":"BCrypt",
14+
"shortDescription":"A ColdBox module for BCrypt. Creates cryptographically strong (and slow) password hashes.",
15+
"type":"modules",
16+
"contributors":[
1717
"Seth Feldkamp",
1818
"Brad Wood <[email protected]>",
1919
"Luis Majano <[email protected]>",
@@ -23,11 +23,11 @@
2323
"**/.*",
2424
"tests",
2525
"*/.md"
26-
],
27-
"dependencies" :{
28-
"cbjavaloader": "^2.0.0"
29-
},
30-
"scripts":{
26+
],
27+
"dependencies":{
28+
"cbjavaloader":"^2.0.0"
29+
},
30+
"scripts":{
3131
"release":"recipe build/release.boxr",
3232
"format":"cfformat run *.cfc,models/,test-harness/tests/specs",
3333
"format:watch":"cfformat watch *.cfc,models/,test-harness/tests/specs ./.cfformat.json",

changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
----
99

10+
## [3.0.1] => 2020-NOV-25
11+
12+
### Fixed
13+
14+
* @wpdebruin <[email protected]> - enabled `workfactor` to be used in `hashPassword()`
15+
16+
----
17+
1018
## [3.0.0] => 2020-NOV-1
1119

1220
### Added

models/BCrypt.cfc

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ component singleton threadsafe{
3434
string function hashPassword(
3535
required string password,
3636
workFactor=variables.settings.workFactor,
37-
salt =generateSalt()
37+
salt =generateSalt( arguments.workFactor )
3838
){
3939
return variables.bcrypt.hashpw( arguments.password, arguments.salt );
4040
}
@@ -107,4 +107,4 @@ component singleton threadsafe{
107107
private boolean function isBCryptLoaded(){
108108
return !isNull( variables.bcrypt );
109109
}
110-
}
110+
}

0 commit comments

Comments
 (0)