I have an encryption function that encrypts the string to use as a filename. The problem is that many encrypted strings contain characters that do not allow in a file name such as / or \ ... in Windows. Is there a way that I can encrypt file names (or at least do not read them directly by the user unless they are decrypted by the program)?
Thanks
Assume that the file name does not have any value (if such , Then I will add that data as a file content), I will just use that location [Path.GetRandomFileName] Returns a cryptographic, strong, random string can be used as a folder name or file name.
Comments
Post a Comment