You can use the undocumented functions:
cfusion_encrypt
cfusion_decrypt
which perform the same as encrypt and decrypt, taking the same
arguments. The only difference is that they only encrypt into
alphanumeric characters.
Example:
encrypt("teststring","mykey") creates: *9[NNAKZ2R1*2U7T$
but
cfusion_encrypt("teststring","mykey") creates: 191C18110A190B020B1E
--
Billy Cravens
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
>
> ----- Original Message -----
> > A co-worker and I came up with this possible tool to conceal the names of
> > FuseActions, for even heightened security for the paranoid. It consists of
> > a custom tag to create a structure containing FuseActions and their
> > encrypted values, and a line to decrypt the passed FuseAction.
> ....snip....
>
> Good idea, I tried something similiar as a test. One problem I faced was that
> the Encrypt function uses characters outside of the alphanumeric range which
> caused the encrypted string to go bust when I put it on the end of a url string.
> I ended up using:
>
> ToBase64(Encrypt(String, Encrypt_Key))
>
> to get it to work. Then use:
>
> Decrypt( ToString(ToBinary( Base64_String)), Encrypt_Key))
>
> to decrypt if from the URL.
>
> CF 4.5.X has a new function called HASH that looked more promising than Encrypt
> (its only a one way encryption though).
>
> : David Nesbitt
> : Web Developer (ColdFusion)
> : Ottawa, Ontario Canada
> : (c) 613 277 2691
> : (e) [EMAIL PROTECTED]
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists