<!---Page1.cfm--->
<cfset YourID="13">
<!---Set an encryption key--->
<cfset thekey = "AnyKey001">
<!---Encrypt the value--->
<cfset EncryptedID="#URLEncodedFormat(Encrypt(YourID, thekey))#">
<cfoutput>
<a href="Page2.cfm?ID=#EncryptedID#">Link</a>
</cfoutput>
<!---Page2.cfm--->
<!---Use Same Key--->
<cfset thekey = "AnyKey001">
<!---Decrypt the ID--->
<cfset YourID=Decrypt(URL.ID, thekey)>
<!---All done--->
<cfoutput>
#YourID#
</cfoutput>
>
>
> Passing values in the URL and would like to hide the true values.
>
> Can someone give me an example of using encrypt and decrypt and any
> tips, problems with this method.
>
> Thanks
>
> Gordon
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists