You are not logged in.

#1 2011-10-18 20:14:44

Chrys349
Member
From: Romania
Registered: 2011-09-04
Posts: 50

solution to encrypt txt file

I have a text file in wich I've stored account passwords, so I won't have to remenber them after OS and browser reinstallation, and when I was using windows, I was keeping that txt file in a password protected archive, just in case someone breaks into my system, but I switched from windows to linux and I need a solution to password protect this file. Is there an alternative to winrar for linux, or is there a better solution to archiving + password protecting the archive ?

Last edited by Chrys349 (2011-10-18 20:15:54)

Offline

#2 2011-10-18 20:29:04

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: solution to encrypt txt file

You can:
1) Encrypt the file with gpg
2) Create an encrypted container to store the file in using TrueCrypt


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2011-10-19 01:35:57

jetm
Member
From: Costa Rica
Registered: 2010-12-19
Posts: 35

Re: solution to encrypt txt file

lifeafter2am wrote:

1) Encrypt the file with gpg

$ gpg -c foo.txt
Enter passphrase:<PASSWORD>
Repeat passphrase:<PASSWORD>

This will create foo.txt.gpg file

2) Decrypt the file

$ gpg foo.txt.gpg
gpg: CAST5 encrypted data
Enter passphrase: <PASSWORD>
gpg: encrypted with 1 passphrase

More gpg options:

$ man gpg

Offline

#4 2011-10-19 01:57:16

Ansikt
Member
Registered: 2010-11-14
Posts: 11

Re: solution to encrypt txt file

Seconding the TrueCrypt suggestion (it's an absolutely awesome, solid program in my experience), but I'm wondering if that's the solution for you.  There are a lot of specialized "password keepers" for linux, which may be easier to manage than your file.

Here's a good article containing a review of a number of them, but there's tons out there, if you feel like looking.

Last edited by Ansikt (2011-10-19 01:57:58)


Okay, I take it back.

Offline

#5 2011-10-19 22:28:40

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: solution to encrypt txt file

zip

Offline

#6 2011-10-20 01:57:01

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: solution to encrypt txt file

I like 7z as it supports encryption and works the same on linux/win so its good if you need to transfer between the two.

Offline

#7 2011-10-20 03:05:08

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: solution to encrypt txt file

Especially if you want to encrypt txt files a editor with encryption support may suit your task very well. One editor that I can highly recommend is CryptoTE, which can be found in the AUR.

CryptoTE is based on the scintilla widget, is very easy to handle and stores the data in a way that should be sufficient and safe enough.

Regards

Offline

#8 2011-10-20 03:55:33

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: solution to encrypt txt file


This silver ladybug at line 28...

Offline

#9 2011-10-20 04:31:36

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: solution to encrypt txt file

keepassx is a great little program to keep your passwords and other data encrypted...and you can keep the little encrypted database file in something like dropbox or on a flash drive as well so you can use keepass on any windows or linux system (and keep them sync'd if you use dropbox!).

Scott

Offline

#10 2011-10-20 05:40:43

itman
Member
From: Switzerland
Registered: 2010-05-21
Posts: 124

Re: solution to encrypt txt file

firecat53 wrote:

keepassx is a great little program to keep your passwords and other data encrypted...and you can keep the little encrypted database file in something like dropbox or on a flash drive as well so you can use keepass on any windows or linux system (and keep them sync'd if you use dropbox!).

Scott

and on android too.

android != linux

Offline

#11 2011-10-22 07:44:54

halhen
Member
From: Gothenburg, Sweden
Registered: 2009-04-08
Posts: 56
Website

Re: solution to encrypt txt file

As lolilolicon suggest, vim can handle the job.

I have a directory of text files that contains my life: todo lists, diary, bookmarks, recipes and passwords. I want some of these files encrypted. To encrypt a file, a simple

:X

in vim lets me enter a password, which I next time must enter to open the file. Since version 7.3, vim supports blowfish. Enable it with

set cryptmethod=blowfish

in ~/.vimrc.

Sure, the integration is smoother from a proper password keeper, but I want to keep my passwords with everything else and I want to encrypt other things than passwords. I'm happy with this setup.


statnot - status text manager and notification-daemon for dwm, wmii and the like
shic - SHellscript Irc Client

Offline

Board footer

Powered by FluxBB