Obfuscate Text in HTTP Post - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: Obfuscate Text in HTTP Post (/showthread.php?tid=18502) |
Obfuscate Text in HTTP Post - cipherwar - 05-04-2011 Hallo, i'd like to submit Text to a Webserver using http webrequest (POST). How can i obfuscate Text from a multiline textbox in a way, that a PHP script on the server can easily decrypt the information to store the plaintext in a database then? It doesn't have to be ultra-secure.. any suggestions oder snippets are welcome! RE: Obfuscate Text in HTTP Post - Gaijin - 05-04-2011 Well PHP as far as I know, has only base64_encode() and base64_decode(), the functions encode text to base64 and decodes it back to original string. However, base64 text is longer then real text, the data being sent to the server will be larger, if you don't care about that you can use those functions. Encoding Strings to Base64 VB.NET Base64 Encoder and Decoder base64_encode() base64_decode() On the other hand, you can write your own encoding/decoding function in PHP and C#/VB.NET. Take a look at this pages and see how other try to do it, learn from it. http://stackoverflow.com/questions/1289061/best-way-to-use-php-to-encrypt-and-decrypt http://strugglingdevelopers.blogspot.com/2008/12/text-encryption-on-php.html http://www.osix.net/modules/article/?id=606 http://stackoverflow.com/questions/2635161/text-obfuscation-using-base64-encode http://www.php.net/manual/en/refs.crypto.php RE: Obfuscate Text in HTTP Post - milopeach - 05-04-2011 I don't suppose there is a way to encrypt it with a few hash sequences that the server can decrypt so he/she has a more secure POST Request is there? RE: Obfuscate Text in HTTP Post - KoBE - 05-04-2011 (05-04-2011, 05:00 AM)milopeach Wrote: I don't suppose there is a way to encrypt it with a few hash sequences that the server can decrypt so he/she has a more secure POST Request is there? You cannot 'decrypt' a hash... the OP could however see if your server has the mcrypt library installed and try to figure out how to use that. But base64 would be perfect if you don't need it to be very secure. RE: Obfuscate Text in HTTP Post - cipherwar - 05-04-2011 OK, for my purpose BASE64 is enough. Thx all! |