Hi,
I am setting up a rev. server client system where data is encrypted using the SSL library in rev. I find that while simple URL encoded data can be posted to the server with no problem, if I run the data through the rev. Encrypt command (using blowfish) the data will not post properly to the server. When I call the data back from the server, it won't decrypt. It seems as if the data is being cut off randomly between the client and server machines. I set up a character count on the client, (after the encrypt), then count the characters at the server. They do not match, and the count at the server is random each time. If anyone has some insight on this It would be appreciated!
Encrypting data for POST
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Encrypting data for POST
Hi PeterA,
It might be useful to send the data as multipart form data. Before posting it, encode it as base64. It might also be useful to replace all return chars (ASCII 10) in the base64 encoded data by a different character, e.g. a tab, and to urlEncode it. On the server, you'd have to urlDecode it, replace the tabs with returns and base64decode the data before decrypting it.
Kind regards,
Mark
It might be useful to send the data as multipart form data. Before posting it, encode it as base64. It might also be useful to replace all return chars (ASCII 10) in the base64 encoded data by a different character, e.g. a tab, and to urlEncode it. On the server, you'd have to urlDecode it, replace the tabs with returns and base64decode the data before decrypting it.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode