on 11/13/00 9:55 AM, Truman Esmond III at [EMAIL PROTECTED] wrote:

> And retrieve the field from a query I ran
> <cfset txtoutput = #get_report.report#>
> 
> then I attempt to decrypt the file
> <cfset decrypted = decrypt(txtoutput, key)>
> 
> And I get the error...
> 
> The value to be decrypted is no valid.

You usually need to encode the value before storing it in the table. You can
do a tobase64(encrypt(zxxx,xxx)) around the encrypt function and then a
decrypt(tostring(tobinary(zxxx,xxx))) to get it back.

There is also CF_AHEX at the tag gallery which may be easier to implement
(and works pre-4.5)

-- 

Rob Keniger

big bang solutions

<mailto:[EMAIL PROTECTED]>
<http://www.bigbang.net.au>

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

Reply via email to