The length of data to encrypt is limited depends on the key size you used, so that you can not encrypt all text by openssl_public_encrypt() simply. To do this you should reference to 'S/MIME'.
2009/7/14 mahendra [MinG] <[email protected]> > Hi, i am developing a secure email application whereby the email sent to > the receiver is encrypted using PHP openssl_public_encrypt(). The problem is > i could not decrypt the message back to the original message using > openssl_private_decrypt(). > > Questions: > 1. What is the encoding format for the encrypted text that is generated > from openssl_public_encrypt? > 2. Is it possible that because when i generate the encrypted text, i echo > it into a HTML textarea and hence changing the encoding? > > Thanks for your help and suggestion. > > ------------------------------ > What can you do with the new Windows Live? Find > out<http://www.microsoft.com/windows/windowslive/default.aspx> >
