See,

that encoding method was not produced by me, it was request from bank
to do such crazy encryption to use their gateway.

That told exactly: first to SHA-1, then RSA (with results of SHA-1)
and after all encode it with base64 :(

Could you help me with this ?

Вы писали 27 марта 2003 г., 15:42:40:

JS> I'm not sure why you would want to encrypt a hash of a string, a hash 
JS> (sha1) is already non reversible and you also do not need to 
JS> base64_encode a sha1 hash (try <?php print sha1('hello'); ?>)..

JS> If you want to do RSA public key encryption you will need to use an 
JS> external application such as gpg or pgp.

JS> Also please note if you are intending to encode the plain text three 
JS> different ways you are exposing yourself with base64, base64 is not an 
JS> encryption technique.

JS> The way I understand your question is data -> sha1 -> rsa -> 
JS> base64_encode but it could also be

data ->> sha1
data ->> rsa
data ->> base64

JS> The latter is not secure because you are using base64 which is not even 
JS> trivial to decode.

JS> Jason

JS> 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.
>>
>>
>>  
>>




-- 
С уважением,
 Veniamin 
 [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to