Highlighted

hashing password with bcrypt in coldfusion

New Here ,
Jul 14, 2015

Copy link to clipboard

Copied


Hello

    I am trying to hash a password with bcrypt algorithm (try to match password with an off the shell software), but I keep getting error, it works for algorithms "SHA-1", "SHA-256" etc...<cfset hashpw = #hash(password_from_form, "SHA-1")#>, <cfset hashpw = #hash(password_from_form, "SHA-256")#>

   but  <cfset hashpw = #hash(password_from_form, "BCrypt")> don't work,  got error : The BCrypt is not supported by the security Provider you have chosen.

   Is there no bcrypt algorithm in coldfusion hash function ?

   Have been working on it over a week but without luck.

   btw, I am using dreamweaver 8.

    thank you so much in advance.

Views

1.4K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

hashing password with bcrypt in coldfusion

New Here ,
Jul 14, 2015

Copy link to clipboard

Copied


Hello

    I am trying to hash a password with bcrypt algorithm (try to match password with an off the shell software), but I keep getting error, it works for algorithms "SHA-1", "SHA-256" etc...<cfset hashpw = #hash(password_from_form, "SHA-1")#>, <cfset hashpw = #hash(password_from_form, "SHA-256")#>

   but  <cfset hashpw = #hash(password_from_form, "BCrypt")> don't work,  got error : The BCrypt is not supported by the security Provider you have chosen.

   Is there no bcrypt algorithm in coldfusion hash function ?

   Have been working on it over a week but without luck.

   btw, I am using dreamweaver 8.

    thank you so much in advance.

Views

1.4K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 14, 2015 0
Advocate ,
Jul 15, 2015

Copy link to clipboard

Copied

Coldfusion doesn't support bcrypt in the hash function. You will have to use a java version and integrate it.

You can do something like this : http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/using-bcrypt-in-coldfusion-10-370

This is for CF10 / 11 but there are various similar ways and post online about this depending on the version of Coldfusion you use. Let me google that for you

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 15, 2015 0
ben7 LATEST
New Here ,
Jul 16, 2015

Copy link to clipboard

Copied

sorry I was out for a few days.

thank you so much for the info. I am using dreamweaver 8 but in the process of converting it to cf11.

The code is kind of complicated for me, but I will digest it slowly, I will let you know what happens.

thanks again.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 16, 2015 0