LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-06-2004, 01:33 AM   #1
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
using mcrypt from commandline


Hi,

I've never used crypt or mcrypt, and i need to encrypt a .tar file to later decrypt it again. I would appreciate if someone explained me step by step what i have to do. Im interested in using a maximum security algorithm but im pretty ignorant in this topic


cheers !
 
Old 12-08-2004, 10:16 PM   #2
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
try gpg for some serious crypto

look at http://www.gnupg.org

it has the howto's and the downloads if you haven't got them yet.

you could write your own small php encryption program it takes only a second to get symetric encryption to work. Have a look at the mcrypt thing in www.php.net
 
Old 12-10-2004, 04:14 PM   #3
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
I've read most googleable tutorials, but when it starts talking about generating symmetric keys and upgrading the kernel for random number generation they lose me
 
Old 12-10-2004, 09:02 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
What's hard?
Code:
gpg --gen-key
gpg --encrypt-files [files]
Once a file is encrypted though, don't lose the keys that you used (they're stored in ~/.gnupg) or the data will be forever lost.
 
Old 12-11-2004, 01:08 AM   #5
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
Thanks sigsegv for putting it in clear terms. If it would have been so easy to found an example like yours,.. apparently people doesnt feel comfortable with simplicity
 
Old 12-11-2004, 09:17 AM   #6
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Quote:
Originally posted by Hano
Thanks sigsegv for putting it in clear terms. If it would have been so easy to found an example like yours,.. apparently people doesnt feel comfortable with simplicity
I don't feel comfortable with it either. I expect a user to know what they're doing, or at least be able to read/search, which in this case it looks like you have (some). GPG isn't hard software, and the documentation is plentiful, so I really don't know why anyone with basic reading comprehension skills would need help beyond someone telling them GPG is what they're looking for.


Crypto is one of those things ... Just because you know the commands to do something doesn't mean you don't have to know how it works. Not knowing what you're doing and how the software works is an almost definite eventuality of data loss.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mcrypt libmcrypt gSalsero Linux - Software 1 03-31-2005 12:18 AM
using mcrypt Hano Linux - Software 0 12-06-2004 03:47 PM
php-mcrypt? nigeledge Linux - Software 0 10-03-2004 09:39 AM
Mcrypt/Libmcrypt Installation on Mandrake 10 Xandrake Linux - Newbie 12 05-12-2004 08:05 PM
php and mcrypt mayankjohri Linux - General 3 06-29-2002 04:20 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration