Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have begun encrypting some of my tar archives for security. I was wondering, which is safer:
tar -cf - files | gpg --cipher-algo aes256 -c -o - > file
or
tar -cf - files | openssl aes-256-cbc -salt > file
I guess my question boils down to this: which is better to use for encrypting individual archives, openssl or gpg.
Also, does my password have to be a true random sequence (like something from `openssl rand [length] -base64`) to be secure with these programs (or do these programs hash the passwords so that is not necessary)?
I'm not sure I could really comment on which one is 'safer'. That is, if they both are using 256 AES, then the theoretical security is equal, the only differences in security would be things like how well they protect their memory spaces from being swapped, etc. However, I would go with gpg, because it's really meant for this kind of thing. That is, openssl is really the solution for encrypting streams (http connects, ssh, etc) and gpg is a solution for block encryption (files, things of fixed length).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.