>Using Hash expression with SHA according to docs it is to return a 28 
>character string.
>When I run this, it returns a 40 character string.
>
>From Documentation.
>SHA: Generates a 28-character string using the Secure Hash Standard SHA-1 
>algorithm
>specified by Nation Institute of Standards and Technology (NIST) FIPS-180-2.
>
>Is this a known issue, is there a work around?

Follow Up: Tracking the responses I found the following code example which 
provided the functionality I needed so I am posting it here: My thanks to the 
HOF community for the responses.

base64SHA = toBase64(binaryDecode(hash(form.myPassword,'SHA-1'),'hex')); 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to