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.

link|improve this question

63% accept rate
It does not appear you understand how encrypting a file works. What you want does not exist. – Ramhound Dec 5 '11 at 16:53
@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. – ldigas Dec 5 '11 at 17:01
feedback

3 Answers

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
link|improve this answer
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! – ldigas Dec 5 '11 at 2:09
this works with many other archivers 7zip, zip and others.. – Vineet Menon Dec 5 '11 at 7:26
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.