We have multiple sites and we have requirement to post values between them.
I am using phpseclib (http://phpseclib.sourceforge.net/) library for encryption-decryption.
After encrypting data, is it safe to POST on other website.
My working scenario is as follows:
Let's assume that I have a string that I need to post on example2.com from example1.com
First, at example1.com, I will encrypt the string using library provided functions. Then, encrypted string will be set as value for a hidden form field, which will post data to example2.com
Is it safe to POST encrypted value directly to example2.com? or should I make use of some encoding function like json_encode, or url_encode to encode encrypted data and make it safe for transaction between websites?