I was wondering how to encrypt a string in coldfusion if it contained special characters like the # sign. I am looking to also be able to use the decrypt function and be able to get back the original unencrypted string that would show the pound sign. Thanks!
Currently, as long as the string contains a pound sign, an error will be thrown. I was initially thinking of using the replace function to replace the pound signs in the string, but this will not work well as I want to be able to decrypt the original string and see the pound signs again. For example, if I chose to replace the pound signs with a '$' sign, than if the original string had both a # sign and a $ sign, than upon decryption, instead of having 1 # sign and 1 $ sign, I will have 2 $ signs.
Thanks for any insight on this.