Add an option to encrypt the file name as well as the file
Status: Beta
Brought to you by:
selinger
I thought it would be a useful addition to ccrypt to have it encrypt file names as well as encrypting files (say, for example, a "-n" option for "process names"). I've almost got this working using ccrypt 1.7 (I'm having trouble figuring out how to determine the length of a decrypted string). The only downside so far is that the encrypted (and subsequently base64 encoded) file names are long - for example, test.txt might encrypt to:
J6tYleBk2HYczUR2CA6Mfk2yq0#qPdabCDW#TOS5RnoITtxa5f_la3CSYUxq
after a bas64 encode.
Let me know if there's any interest in this feature before I spend any more time pursuing it; I have a patch that almost works, except for one elusive bug (which I might need help tracking down).