LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2014, 11:15 PM   #1
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Rep: Reputation: Disabled
Need tool to encrypt files on Windows 7


I just want to archive and encrypt all files from one folder on my Windows 7 computer so I can safely back them up on my website. I installed Cygwin and I can tar the files but I can't seem to use OpenSSL. The command "openssl --help" returns "-bash: openssl: command not found" yet some openSSL files were installed with Cygwin: http://i62.tinypic.com/2dt2nty.jpg

This tutorial on "Working with tar with encryption" didn't work in all kinds of ways.

I read something on the Cygwin mailing list (which doesn't accept email from me for some reason) about OpenSSL being 32 bit. My computer is 64 bit, so maybe that's the problem. I'll try again at the command line if you have any suggestions. Here's the full list of OpenSSL things that I can install with Cygwin: http://i62.tinypic.com/14o14xe.jpg

I'm not limiting myself to the command line though, so I'm wide open to suggestions.
 
Old 03-28-2014, 03:57 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
OpenPGP runs on both Linux and Windows. It would seem to be easier to use the Windows version on a Windows machine.
 
1 members found this post helpful.
Old 03-28-2014, 04:04 PM   #3
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks, maybe I'll try it. I just installed 7-Zip and it works fine. Too bad I can't recommend it because it doesn't meet my user friendliness standards, but it comes closer than Gpg4win.
 
Old 03-28-2014, 05:27 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,633
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Uh uh ... I don't think that 7-Zip securely encrypts the files. You'll need to do both.
 
Old 03-28-2014, 06:38 PM   #5
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
There's a AES 256 checkbox under "encryption method."
 
Old 03-29-2014, 02:49 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,633
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
I do not know. Is that a peer-reviewed implementation? Does it provide the certificate-based implementations available in PGP/GPG? (If "all you're doin' is a password," then in my humble "that's a fatal weakness, regardless of algorithm." You can't put a steel door in a wooden wall beside an open window...)
 
Old 03-29-2014, 04:56 PM   #7
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I don't know. Yesterday I read a long thread on another forum with all kinds of details comparing it with a competing product that's known for not being cracked by the FBI after a year of trying and it sounded like it would take even longer to crack 7-Zip's protection. 7-Zip was independently tested but not as much as the one the FBI allegedly couldn't crack. It's generally considered a good product. I can't find the thread now.
 
Old 03-29-2014, 06:00 PM   #8
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
How many files ? If there are many then you may want to use truecrypt.

7zip works well and has good encryption, but it would be somewhat cumbersome to use for many files and doesn't provide all the features of more professional encryption tools like cryptsetup / dm-crypt and truecrypt. Sure I do use it, but not for many files. I mean I make a small backup for my scripts and config files to my e-mail and encrypt them with 7zip. Technically they don't even need to be encrypted, but I do so just in case.
 
Old 03-29-2014, 06:22 PM   #9
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I haven't figured out how much I'll be encrypting but yesterday I encrypted my most single important directory which came to about 120MB in one file. I think it took 3 minutes to encrypt with maximum compression and maybe another couple of minutes to upload with SFTP. I'm not sure how often I'll be doing it. Most of the files don't change between backups so that's a major source of inefficiency. Maybe I'll use a different product if it will identify the updated files and make an encrypted archive of only them.

Last edited by Bohan; 03-29-2014 at 06:23 PM.
 
Old 03-29-2014, 07:40 PM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Well, 7zip does have the ability to update files inside archives, so you should look into that.
 
Old 03-30-2014, 01:36 PM   #11
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I may try something else anyway because error messages appeared for some files or folders as I was encrypting a folder but I couldn't find an error log when it was done.
 
Old 03-30-2014, 07:44 PM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,633
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Do as you see fit. (I am not saying that you are wrong.) But, if it were me, I would encrypt those archives with GPG, having first established for myself that the process is 100% successful and reversible. Furthermore, I would use digital certificates to accomplish that encryption, securing the private-key portion of those certificates with a password. I am confident of that peer-reviewed strategy. Furthermore, it is my understanding that GPG routinely compresses files. (However, I would also be willing to 7-zip compress the data, then encrypt the 7-zip file with GPG.)

Last edited by sundialsvcs; 03-30-2014 at 07:47 PM.
 
Old 03-31-2014, 08:11 AM   #13
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.gpg4win.org/
 
Old 03-31-2014, 09:26 AM   #14
Bohan
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
That's not my kind of software. You have to read long instructions before you can use it and I don't believe good encryption has to be that way but I'm still looking for something that saves an error log after encrypting, even if it costs money and has a back door for the government. I'm not hiding any illegal stuff.
 
Old 03-31-2014, 10:28 AM   #15
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,633
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
As you've heard ... it's your data. Do as you see fit. Do what works for you. You won't necessarily be "wrong" by doing it that way, whatever "that way" turns out to be. As long as you are able to recover the data at-will and presumably no one else (easily) could do the same, "it's all good."
 
  


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
encrypt files faster sumeet inani Linux - Software 2 12-13-2013 08:44 PM
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
How to encrypt files wwnexc Linux - Software 1 09-25-2006 08:40 PM
program to encrypt files dasy2k1 Linux - Security 6 08-07-2006 09:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:39 PM.

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