I would like to store files on a shared web server but would like to hide the content of the file. I will be encrypting the contents of the file but I am very aware that if someone had the time and knowledge they could target the files based on their name.
What is the best method for either encrypting the file name or obfuscating it?
I have looked at creating a separate index file and using a Dictionary to store for the original and obfuscated file names but if I could do the same using reversible encryption that might be easier/less prone to disaster if the index file is lost.
Hope that makes sense.
Update: To be clear I would like this to be reversible and I would like to ensure that the files are not searchable on the drive (i.e. obfuscating paths would not be sufficient).
You could add a random value to the url. Ex:
http://example.com/my-site/943hfkl3w7/SecretFile.zip
http://example.com/my-site/jf6490fh40/OtherFile.zip
This way the original file name is never changed and file locations are not guessable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With