|
jgpaiva
|
 |
« on: July 18, 2007, 04:18:05 PM » |
|
Hello there... Here i seek the immense knowledge of the people of DC  I'm looking for a program that is command line, small, and can encrypt files safelly. There are inumerous options in google, but i'm looking for an already-tested/safe alternative. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Lashiec
|
 |
« Reply #1 on: July 18, 2007, 04:36:49 PM » |
|
You hit the jackpot then  . Dariusz Stanislawek has all these tiny programs, with a bunch of them focused in file encryption. All of them are portable, they use encryption standards, and they're recommended by people like Gizmo. I tried most of them in the past, and they worked like a charm. The only problem is choosing one, so pick your poison, but I'd go for dsCrypt, which uses AES, and comes both in GUI and commandline versions.
|
|
|
|
|
Logged
|
|
|
|
|
Edvard
|
 |
« Reply #2 on: July 18, 2007, 04:45:05 PM » |
|
Well, Windows 2000 on up has a handy little utility called cipher.exe. If you like open source, there's Animesh Srivastava's Crypt. That's all I have...
|
|
|
|
|
Logged
|
All children left unattended will be given a mocha and a puppy.
|
|
|
|
|
jgpaiva
|
 |
« Reply #3 on: July 18, 2007, 04:45:40 PM » |
|
Damn, those are cool! But apparently, all of those require that the key is in an external file.. I wanted to pass the key as a command line argument  (i guess that isn't very safe, is it?) The idea was to make an alias action for farr that would encrypt files, but now that i come to think about it, maybe it'd be a job more suited for a plugin than an alias.
|
|
|
|
|
Logged
|
|
|
|
|
Lashiec
|
 |
« Reply #4 on: July 18, 2007, 04:56:40 PM » |
|
Not really. As you can see, dsCrypt accept both methods.
|
|
|
|
|
Logged
|
|
|
|
|
jgpaiva
|
 |
« Reply #5 on: July 18, 2007, 05:32:54 PM » |
|
Not really. As you can see, dsCrypt accept both methods. Unfortunatelly, apparently that only stands for the GUI version. The GUI version can create key files, to be used with both the GUI and the CLI version. But the CLI version, can only get key files as input 
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #6 on: July 18, 2007, 05:33:09 PM » |
|
No, wouldn't be very safe...
RAR could be a choice too btw, it compresses and encrypts, using AES.
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
app103
|
 |
« Reply #7 on: July 18, 2007, 05:51:56 PM » |
|
Maybe you could talk Martin into adding the command line features you want/need to Ligare.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
mwb1100
|
 |
« Reply #9 on: July 18, 2007, 06:17:16 PM » |
|
You might want to look at GnuPG. It's been a while since I've used it, but you could encrypt using a passphrase with the command: [ copy or print] echo testing123|gpg --symmetric --passphrase-fd 0 --output EncryptedFilename FilenameToEncrypt If you want the encrypted file to be email-safe you can also have it ASCII-encoded: [ copy or print] echo testing123|gpg --symmetric --passphrase-fd 0 --output EncryptedFilename --armour FilenameToEncrypt Decrypt like so: [ copy or print] echo testing123|gpg -d --passphrase-fd 0 --output UnEncryptedFilename EncryptedFilename The echo command pipes the passphrase into stdin for the gpg command. The "--passphrase-fd 0" option tells gpg to grab the passphrase from stdin. They used to have a plain old "--passphrase" option that let you give it on the gpg command itself, but they considered that too insecure (what a pain). If you leave off the "--passphrase-fd 0" option (leave off the echo command as well), gpg will prompt you for a passphrase.
|
|
|
|
|
Logged
|
|
|
|
|
crono
|
 |
« Reply #10 on: July 18, 2007, 07:08:33 PM » |
|
I like GnuPG too and used it a lot, but now I basically use AxCrypt . Its Open source under GNU General Public License and comes with a very nice commandline Interface. It can produce "self-decrypting" Exe-Files to decrypt the data on Machine with no AxCrypt Installation.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
jgpaiva
|
 |
« Reply #12 on: July 19, 2007, 05:20:09 AM » |
|
Given the fact that i already need 7zip in the package, this is the option i'll opt for. Thanks a lot patthecat!! PS:I even unninstalled the trial version of winrar, to install 7zip 
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #13 on: July 19, 2007, 05:52:15 AM » |
|
PS:I even unninstalled the trial version of winrar, to install 7zip  Heretic!
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
Lashiec
|
 |
« Reply #14 on: July 19, 2007, 07:04:30 AM » |
|
PS:I even unninstalled the trial version of winrar, to install 7zip  You did WHAT?? 
|
|
|
|
|
Logged
|
|
|
|
|
jgpaiva
|
 |
« Reply #15 on: July 19, 2007, 07:06:53 AM » |
|
hmm... i see that might not have been the best idea i've had.
|
|
|
|
|
Logged
|
|
|
|
|
jgpaiva
|
 |
« Reply #16 on: July 26, 2007, 09:29:10 AM » |
|
Yep, it wasn't the greatest of ideas. I had no knowledge that 7zip couldn't handle winrar archives. I've changed to Alzip, which feels better than winrar and 7zip (i like the tree view), and has the added bonus of having sexy icons.. eheh 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
jgpaiva
|
 |
« Reply #18 on: July 26, 2007, 10:37:18 AM » |
|
I don't know il alzip can do it, dhuser. But i ended up solving that problem with 7-zip, which can make self-decompressing encripted zip files through command line  I just gave up using it for regular use, i've kept it in my file management alias for find and run.
|
|
|
|
|
Logged
|
|
|
|
|