Is there something odd about this function in CF?

I tried using this code to encrypt...

 <CFSET string = inbound_string>
 <CFSET key = '1234567'>
 <CFSET encrypted = encrypt(string, key)>

and then pull it out of the table and use this to decrypt...

 <cfoutput>
 <CFSET key = '1234567'>
 <cfset txtoutput = #get_report.report#>
 <CFSET decrypted = decrypt(txtoutput, key)>
 <pre>
 #decrypted#
 </pre>
 </cfoutput>

Problem is that sometimes the decrypted comes back all garbled. NOT a good
thing.

Is there something that I need to remove from text prior to encryption? Is
this a bogus encryption scheme? I don't need 128bit at this point, but I do
need some form of encrypt.

Marcus

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to