OpenSSL Encryption with AES
Hi there --
I am running a script that encrypts a newly created tar file with des3 encrytion. The user is prompted for a password that is to be associated with the file. I wanted to explore the possibility of using aes as a possible replacement for des3 encryption. If I were to go down that route, will I still be able to associate a password with the encrypted tar file? Also, will there a be a speed degradation involved with aes encryption? Thanks. |
Yes, both aes and des3 are symmetric algorithms and therefore require a key (which is derived from the passphrase). Not sure about the speed difference, but there are various versions of aes, differing in the length of key (e.g. aes128, aes256).
|
Hi there --
Thanks for your reply. Based on your answer, the command in question: Code:
$cmd= "(cd $source; tar -cvf - . |openssl des3 -salt -k $password > $destination/archive.tar.des3)"; Code:
$cmd= "(cd $source; tar -cvf - . |openssl aes128 -salt -k $password > $destination/archive.tar.aes128)"; Code:
$cmd= "(cd $source; tar -cvf - . |openssl aes256 -salt -k $password > $destination/archive.tar.aes256)"; One other question: Is des3 truly 168-bit encryption due to its triple layer of 56-bit, or is it three separate 56-bit instances of DES? Thanks. |
Quote:
Quote:
|
All times are GMT -5. The time now is 11:40 AM. |