Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

Problems decrypting a wddx string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
djc11 - 02 May 2008 22:47 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.