If you want to do RSA public key encryption you will need to use an external application such as gpg or pgp.
Also please note if you are intending to encode the plain text three different ways you are exposing yourself with base64, base64 is not an encryption technique.
The way I understand your question is data -> sha1 -> rsa -> base64_encode but it could also be
data -> sha1 data -> rsa data -> base64
The latter is not secure because you are using base64 which is not even trivial to decode.
Jason
Veniamin Goldin wrote:
Hi all,
I need some help,
I have a request to encode string with SHA-1, then with RSA and at the end with base64,
There no problems with SHA-1 and base64, but i can't find any functions to encode using RSA.
md5 seems to be not what I'm looking for.
I heard also, that there should be special function, that makes SHA-1 + RSA at once.
Help please.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php