Ambarish Mitra wrote: > Hi Jimmy, Thanks for your response. Kindly find my thoughts inlined.. > >> Question: >> So, the question is: How can we generate a key for Triple DES encryption and >> write out the same in a file? >> > > Simple answer for 'how to generate a key for a symmetric cipher' is 'use > a pseudo-random generator' to generate key/IV pairs of desired length. > > > --- This will be sufficient for my case. Is there a way to generate the same > from the command line, > or we have to generate in a program using "DES_random_key". I could not find > a way to do from the > command line.
$openssl rand -base64 <number of bytes> - There are 2 concerns here. 1) When we do this (with number of bytes = 24 for T-DES), and use the same as keys, then how do we know that it is a strong key for t-des encryption? 2) Also, in the application, we have to do base64 decode, and the resultant may not be ascii. It can have special characters. I am just wondering if sending this key in any decryption function will cause problems. DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]