Quick way to (reasonably strongly) en/decrypt a few files

0

I need a command line utility that enables me to encrypt/decrypt a text file that, due to some circumstances, has to be available online. Encryption does not need to be "super strong" (whatever that is in today's terms), but it would be nice if it was something that a script kiddie couldn't break on his lunchbreak.

Anyone know of something like that?

Needs to work on both XP and '7.

Rook

Posted 2011-12-05T01:31:33.167

Reputation: 21 622

Question was closed 2013-04-18T00:26:54.787

It does not appear you understand how encrypting a file works. What you want does not exist. – Ramhound – 2011-12-05T16:53:59.837

@Ramhound - I never said I'm an expert in the area. Is there a reason why such a utility couldn't exist, or are you just unfamiliar with any existing solutions? Your comment isn't very helpful, in any case. – Rook – 2011-12-05T17:01:06.017

Answers

4

Well, just a quick thought. I think you can use WinRAR's (or 7-Zip's) password encryption on the command line. It should be strong enough. Like this:

rar a -p<password> out.rar <yourpath>\input.txt

user72362

Posted 2011-12-05T01:31:33.167

Reputation: 141

Not a bad idea, but I was more hoping for something in style of "encrypt my-file.txt" / "decrypt my-file.txt my-super-secret-password", that just "switches" the file from encrypted to decrypted, and vice versa. I don't wanna fill my working directory with a bunch of rar files. Nevertheless +1 for thought! – Rook – 2011-12-05T02:09:19.533

this works with many other archivers 7zip, zip and others.. – Vineet Menon – 2011-12-05T07:26:59.967

1

You could always try EFS. It encrypts your file OTF and is bound to your user account. You can use it on multiple computers also, provided they are all Windows. Just embed the EFS certificate of each user account into the file.

surfasb

Posted 2011-12-05T01:31:33.167

Reputation: 21 453

You should mind that relying on a windows certificates does not guarantee you complete safety or integrity of data you want to keep safe. That is because the admin 'key' on windows systems opens everything encrypted with user keys on this system. Hence, your admin could potentialy decrypt your 'safe place'. You did not mentioned the 'online part'. – mnmnc – 2013-04-17T22:06:09.447

0

An option to consider is steganography (google it). This encodes your data into some other file (image, audio, video) so in order to retrieve your data somebody has to know that it's in the file to begin with.

jamesson

Posted 2011-12-05T01:31:33.167

Reputation: 491

incorrect. steganography is hiding one set of data in another set of data without causing disturbance in the second one. for example hiding text as color offsets in bitmap graphic. it is still in clear text once you know where to find it. You can encrypt the data before embedding it. Steganography would not be my choice as size limitation defeats the purpose of securing a medium to large amount of data. True crypt has command line parametres. I would write a script using wget to download the file and decrypt it with tc. – mnmnc – 2013-04-17T22:03:43.387