I'm using the TripleDESCryptoServiceProvider
and need to store the encryption key.
If I call the providers GenerateKey
method, is this just a base64 encoded string? If so am I safe to unencode it as such as use the resulting string as a key?
On a slightly different note, is there any problem with using this same key as a salt key when doing one-way hashes? I'm writing a simple membership provider for .net which allows the user to choose the encryption technique (plain, hash, encrypted) so wondered whether it was necessary to make the user specify both a salt key and encryption key.