This is a discussion on Generating Keys in Triple-DES encryption - Openssl ; Hi all, Background: My application reads an encrpyted-base64 password from a config file and decrypts the same inside the application. The password is encryped using Triple-DES algorithm. To encrypt and base64 the actual password, a stand-alone utility is provided. We ...
My application reads an encrpyted-base64 password from a config file and
decrypts the same inside the application. The password is encryped using
To encrypt and base64 the actual password, a stand-alone utility is
provided. We run this utility, and then copy-paste the generated password in
the config file. Of course, the key, the IV (Salt not used) are same
(hard-coded) in both the applications.
So far, so good.
Now, we have to make the keys available in another file (Which will be kept
under more security). Both the applications are to read the key from the
file. Now, we have to generate the key and then write out the key in the
So, the question is: How can we generate a key for Triple DES encryption and
write out the same in a file?
I tried the genrsa and dsa options but they seem to generate keys for
RSA/DSA encryptions. Also, we can specify the length of modulus in those
keys. But they will not map well in T-Des case.
Any pointers would be welcome.
// PS: Pls ignore the following 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 firstname.lastname@example.org
Automated List Manager email@example.com