LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-04-2009, 05:09 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
looking for a portable encryption method for passwords file


Hey all,
i am wanting to put a list of common passwords on a usb stick, but i want the file to be password protected. I also need to be able to access it from more than one computer (all linux, maybe a mac too).

Open to any suggestions.
 
Old 10-04-2009, 06:21 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I suggest looking at the possibility of using gpg (GNU privacy guard). I think almost all Linux distros have gpg installed by default. TMK Mac and MS Windows don't, but I know versions exist for both. I have a version on a USB drive I can use on public MS Windows computers. If the version for Mac (MacGPG) is similarly portable then you can put both on your USB stick and have all three OS families covered.

You might want to have scripts/batch files (as appropriate for the OS) on the stick to do the decryption so you can automatically define $GNUPGHOME to a directory on your flash drive so you don't leave tracks on the computers you use it on. (Well, at least not create/modify a directory in a user account; the OS can, of course, record that you ran the command.)

Last edited by blackhole54; 10-04-2009 at 06:25 PM. Reason: wording/typo
 
Old 10-04-2009, 06:45 PM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
thanks, looks like an ideal solution.
 
Old 10-05-2009, 01:03 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by nephish View Post
Hey all,
i am wanting to put a list of common passwords on a usb stick, but i want the file to be password protected. I also need to be able to access it from more than one computer (all linux, maybe a mac too).

Open to any suggestions.
1. Create the password file as plain text. Let's say we call it "secrets.txt"

2. Encrypt the file "secrets.txt":

$ openssl enc -aes-256-cbc -e -in secrets.txt -out secrets.enc

When you run this command, it will prompt for a password.

To decrypt:

$ openssl enc -aes-256-cbc -d -in secrets.enc -out secrets.txt

Obviously you could omit the output file specification during the decryption and let the result be printed to stdout. And you could put the encrypted content into a shell script in such a way that the shell script would feed it to openssh and get the unencrypted output on demand.
 
Old 10-05-2009, 01:55 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,773

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
I use keepassx because I have sufficient authority to install it on all the computers I need to reference this data on. Linux or Windows.
 
Old 10-05-2009, 09:46 AM   #6
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
and we have a winner.
keepassX is available on the distro i use at work ( Arch ) and the distro i use at home (debian) and the database can sync on my dropbox account and be carried from usb.

Not that i am afraid of the cli, but this is just so convenient.
thanks
 
  


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
Using WireShark to detect encryption method pablo1999 Linux - Security 6 08-24-2009 12:53 PM
LXer: TrueCrypt HOWTO — Truly Portable Data Encryption LXer Syndicated Linux News 0 05-26-2007 01:46 AM
Please help choose the best encryption method Akonbobot Linux - Security 5 05-07-2007 01:18 PM
Determine what encryption method is used jonlake Linux - General 1 09-27-2006 12:28 AM
proxy url encryption method - ok? mymojo Programming 2 10-20-2003 04:16 AM

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

All times are GMT -5. The time now is 11:12 AM.

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