chrissimpkins / crypto

Simple symmetric GPG file encryption and decryption
http://chrissimpkins.github.io/crypto
MIT License
48 stars 27 forks source link

Name encryption #7

Open chrisidefix opened 9 years ago

chrisidefix commented 9 years ago

I have done some basic testing and couldn't find any issues so far. I simply called this option "--name" for encryption as well as decryption. Some things to note:

1 - decryption without the --name flag will not try to decrypt the file name, but use the uuid instead. We could theoretically always check if there is an encrypted name present inside the file and then make this decryption more automatic? I do somehow prefer user-control for this, though. Not sure if this is the most intuitive. As a common user, I would probably expect that if I chose file-name encryption that the decryptor will automagically figure this out. What do you think?

2 - Any scenario where file names starting with numbers are a bad idea?

3 - The readme still needs to be adjusted to include the new option(s).