Skip to main content
Inspiring
May 2, 2008
Question

Problems decrypting a wddx string

  • May 2, 2008
  • 1 reply
  • 311 views
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.
This topic has been closed for replies.

1 reply

Inspiring
May 2, 2008
djc11 wrote:
> 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.