First, thanks for all the help available on here - these
forums are a last resort that always provides an answer.
OK, on CF 6.1, I am encrypting a string thus before insert
into SQL 2K DB:
<cfset Encrypted = Encrypt(Form.TREE_NUMBER,
"treeroots")>
<cfset Form.TREE_NUMBER = #Encrypted#>
All goes OK there... when I look at the value in the table,
it is there and looks encrypted. The trouble starts here:
<CFOUTPUT query="gettrees">
<cfset Decrypted = Decrypt(TREE_NUMBER, "treeroots")>
<cfset TREE_NUMBER2 = #Decrypted#>
Here's the weird part: this works on my local machine test
version of CF 6.1, but on the production server (also 6.1) it
produces this error:
15 null <br>The error occurred on line 23.
There is so little info available on CF encrypt and decrypt
functions - does the seed have to be defined somewhere before it is
used? Is it possible that the production server can't find the key?
Where is it stored? Is my syntax bad? Please help - I need a simple
encryption routine for some semi-sensitive data in the database
that I need to later query and output to a text file for use.
Thanks!