Welcome Guest.   Make a donation to an author on the site August 30, 2014, 07:21:57 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Encrypt single file?  (Read 7547 times)
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: July 18, 2007, 04:18:05 PM »

Hello there... Here i seek the immense knowledge of the people of DC smiley

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
Member
**
Posts: 2,374


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 18, 2007, 04:36:49 PM »

You hit the jackpot then cheesy. 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
Coding Snacks Author
Charter Honorary Member
***
Posts: 2,535



View Profile Give some DonationCredits to this forum member
« 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
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 Sad
(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
Member
**
Posts: 2,374


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: July 18, 2007, 04:56:40 PM »

Not really. As you can see, dsCrypt accept both methods.
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 Sad
Logged

f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
That scary taskbar girl
Global Moderator
*****
Posts: 5,178



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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

Edvard
Coding Snacks Author
Charter Honorary Member
***
Posts: 2,535



View Profile Give some DonationCredits to this forum member
« Reply #8 on: July 18, 2007, 06:04:20 PM »

One more: OpenSSL
Here's a Windows port: http://www.slproweb.com/products/Win32OpenSSL.html
and usage: http://www.openssl.org/docs/apps/enc.html

The enc function allows encryption with either keys or password, with the -salt option it won't make the same key from the same password.

Looks like you can encrypt with Base 64, Blowfish, CAST, DESX, IDEA, RC2, 4 and 5 in many different modes.

Nice.
Logged

All children left unattended will be given a mocha and a puppy.
mwb1100
Supporting Member
**
Posts: 1,294


View Profile Give some DonationCredits to this forum member
« 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
Charter Honorary Member
***
Posts: 178


see users location on a map View Profile Give some DonationCredits to this forum member
« 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
patthecat
Member
**
Posts: 88


View Profile Give some DonationCredits to this forum member
« Reply #11 on: July 18, 2007, 09:46:24 PM »

How about the 7-zip command line version?
http://downloads.sourcefo...e.net/sevenzip/7za442.zip

You can compress, use AES-256 encryption (for .7z and .zip files), and create a self-extracting exe file.
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: July 19, 2007, 05:20:09 AM »

How about the 7-zip command line version?
http://downloads.sourcefo...e.net/sevenzip/7za442.zip
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 cheesy
Logged

f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: July 19, 2007, 05:52:15 AM »

PS:I even unninstalled the trial version of winrar, to install 7zip cheesy
Heretic!
Logged

- carpe noctem
Lashiec
Member
**
Posts: 2,374


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #14 on: July 19, 2007, 07:04:30 AM »

PS:I even unninstalled the trial version of winrar, to install 7zip cheesy

You did WHAT?? ohmy
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
 Kiss Kiss
Logged

dhuser
Honorary Member
**
Posts: 96



King Dogbert

View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: July 26, 2007, 10:27:11 AM »

I know that ZipGenius has an option to encrypt a zip file and also create an application:


Also See Help Topic:
http://help.zipgenius.it/...ptare_un_archivio_Zip.htm


Can you zip the file and encrypt it?
dhuser
Logged

My StumbleUpon Profile
Imagine.Explore.Create!
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 smiley

I just gave up using it for regular use, i've kept it in my file management alias for find and run.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.052s | Server load: 0 ]