Veniamin --

...and then Veniamin Goldin said...
% 
% Hi all,

Hi!


% 
% I need some help,
% 
% I have a request to encode string with SHA-1, then with RSA and at the
% end with base64,

How odd :-)


% 
% There no problems with SHA-1 and base64, but i can't find any
% functions to encode using RSA.

Right.  You'll need to use something like gnupg for that; RSA is a public
key encryption which requires a key pair.

Once you have your data sha1 encoded, you would pass it to gnupg to
encrypt and then get the encryption back and then encode it with base64
(though that is, as has been noted, superfluous; an armoured output is
high-bit safe).

How do they propose to decode it on the other end?  Are you writing the
other end, too?  [If you are then I guess you get to do it however you
wish :-]  Find out what they're using over there and see what they're
*really* doing instead of what some contract administrator thinks some
attorney heard some IT person say.

The other possibility is that they want to send it over an ssl connection
like any other credit card or secure web connection; ssl uses RSA.  So
you could encode with sha and then pass to the other site via https.


HTH & HAND and good luck :-)

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to