Skip to content

general command line file encryption tool

I'm not 100% sure how to pose this question, but I'm wondering what the standard or most commonly used command line tool for file encryption is. By this I mean it supports some standard crypto algorithms (aes, 3des, etc.) and allows basically any type of file as input.

4 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 100% up
Kind
Text
ID
2pjpf2

Author

46
posts
64
comments
11
media
View profile

8 comments

gpg --symmetric --cipher-algo AES256 -o my_encrypted_file somefile

A list of supported cipher algorithms is given by gpg --version

7 points

I could never get gpg keys working. I just use a LUKS USB for all my encrypted files now.

2 points

Well, in that comment I was pointing out that gpg can also do symmetric encryption (encrypt using a passphrase) in addition to the regular public-key encryption.

Encrypted filesystems are nice (I'm using LUKS with dm-crypt on my Arch drive), but I got the impression OP wanted to encrypt a specific file and not the whole FS.

3 points

For single files or text i would say Gpg

A other way is use encFS,
i have a encrypted folder mounted in my dropbox and can open it even on my smartphone.

Edit: encfs got audited and seems to have security issues. Especially when someone gets access to previous versions of the files(dropbox)

2 points

Another option is openssl:

openssl enc -aes-256-cbc -in original_file -out encrypted_file

To decrypt:

openssl enc -d -aes-256-cbc -in encrypted_file -out original_file
2 points
unknown author

Deleted before we saved it.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.