Hey all, so i have a page that stores some data in a struct, i convert the
struct to wddx, encrypt it and pass the string in a form field. On the action
page i decrypt it but it's not decrypting correctly, which does not allow me to
convert it back to a cfml struct. if i decrypt it and dump it out on the
initial form page, it works fine. for some reason, it seems to have a problem
only after being passed in the form. What am i doing wrong?
As far as the lines to encrypt/decrypt, they seem like they must be right,
because if i use them on the same page it works perfectly.
Ian Skinner - 02 May 2008 23:04 GMT
> As far as the lines to encrypt/decrypt, they seem like they must be right,
> because if i use them on the same page it works perfectly.
Are you encoding the encrypted string to pass it through the form
submit? Encrypted strings often contain special characters that are not
allowed in a http get or post header or body. These strings must be
escaped to be properly passed.
urlEncodeFormat() should probably be in your process somewhere. With
the corresponding ...Decode() function on the other end.