On Mon, Dec 15, 2003, Mohamad Badra wrote: > Hello again, > > In fact, I tried the base64 command (base64 -e input file) on the > hexadecimal file. > a)Firstly, the file's length increases from 256 to 349 bytes. Is it normal? > b)Secondly, the base64 takes the hexa and give me base64 format. What I > need is the exact format (I think it is the pkcs1 format but i don't > know how I can have it) of the encrypted file to decrypt it using RSA key. > > To summarize, I have an encrypted file in hexadecimal format, and I have > to decrypt it using RSA algorithm. > Thank you in advance. >
Err before you said: > >> > >>I have the encrypted premastersecret coding in Base64. Must i translate > >>it to any specific format before decrypt it using the server's private > >>key? > >> Is it in hex format (a bunch of hex digits) or base64 (printable ASCII)? From you saying its 256 bytes (128 * 2) I'd say hex. If its base64 you need the -d (decode) option not -e (encode). If its hex then the normal OpenSSL utilities wont convert it. You can write a short program to convert or use the Unix utility 'xxd'. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
