LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2012, 04:38 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Lightbulb Password Protected Archive from Console using mcrypt


Hey LQ,

I'm trying to encrypt some files that will be sent through email. The file is an archive of .sql files. I would like to know what is the best way to use mcrypt to encrypt this file. I see there is many options and unfortunately I don't know what kind of encryption is best nor can I seem to figure out how to decrypt the *.nc file that mcrypt makes. Any tips in the right direction would be great.
 
Old 06-26-2012, 02:27 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
I use ccrpyt (available on slackbuilds) console based. Automatically you get encryping options 'ccencrypt' and decrypting 'ccdecrypt'.
As far as algorythms are concerned I do not change them. Read the documentation -it is optimised for the best.
As far as mcrypt goes to decrypt the encrypted files the command is 'mcrypt -d filename' (from the man pages).
 
Old 06-26-2012, 05:57 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Is there any way I could run the command to password encrypt the files from a cron job?
 
Old 06-27-2012, 04:25 AM   #4
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
I am certain that ccrypt can be run as cron but then again this is something I would not do and so would not recommend. I believe running in cron would cause more problems then this would solve. It would depend on a lot of things like when exactly are the .sql files are generated or is this machine turned on 24x7.
A more sensible (and safe option) would be to encypt the entire partion (I mean - I assume that the .sql logs are on a different partion) so that everything that goes into that partition is automatically encrypted (somethin like aespipes is a good example).
 
Old 06-27-2012, 07:16 AM   #5
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Well I want to email the .sql files... so they have to be encrypted in some fashion. The Cron would be to have them regularly tar'd up in an archive and then emailed to an account for review and analysis.
 
  


Reply

Tags
.nc, decrypt, mcrypt, tar.gz



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
Password protected network... spaceballs Linux - Wireless Networking 3 01-11-2008 06:36 PM
Password Protected Folder's vezril Linux - Security 2 06-06-2005 11:26 PM
Password protected Apache ne21 Linux - Software 5 07-30-2004 01:08 AM
password protected directories dsgdevil Linux - General 1 02-17-2003 12:02 AM
Password protected entries HHH Linux - General 3 06-27-2001 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration