I want to encrypt a filename but ensure that the encrypted filename doesn't contain any of the characters that are not allowed (on a windows system) in filenames.
The string also needs to be able to be decrypted back to the original filename (so you can't just filter out the invalid characters after the encryption).
To my knowledge the unusable characters are \ / : * ? " > < |. I'm aware of System.IO.Path.InvalidPathChars but I don't know of an encryption method that will avoid those characters.