Question
Decrypt() Problem
It seems that I've got a little problme when trying to
decrypt a password that was encrypted when input into the system.
Here is the error that I get:
There has been an error while trying to encrypt or decrypt your input string: Given final block not properly padded.
I'm not sure what this means. Here is the code I'm using to decrypt the information received from the query:
<cfset userPswd = "#Trim(FORM.Password)#">
<cfset dbPswd = "#Trim(qVerify.Employee_Password)#">
<cfset dPassword = Decrypt(dbPswd,APPLICATION.Key,"#APPLICATION.pKey1#","#APPLICATION.pKey2#")>
<cfset comparison = #Compare(userPswd, dbPswd)#>
Any help would be appreciated.
There has been an error while trying to encrypt or decrypt your input string: Given final block not properly padded.
I'm not sure what this means. Here is the code I'm using to decrypt the information received from the query:
<cfset userPswd = "#Trim(FORM.Password)#">
<cfset dbPswd = "#Trim(qVerify.Employee_Password)#">
<cfset dPassword = Decrypt(dbPswd,APPLICATION.Key,"#APPLICATION.pKey1#","#APPLICATION.pKey2#")>
<cfset comparison = #Compare(userPswd, dbPswd)#>
Any help would be appreciated.
