Sorry if this is a duplicate but I could not find anything that was not in some way related to DB encryption. My problem is not with a DB. I have a set of files encrypted using RijndaelManaged
. In the encrypting code I am using Rfc2898DeriveBytes
to generate the key given a password and a salt and a certain number of iterations. The salt, as it happens, is not stored securely (just a string).
I was wondering: people with access to my code could easily get the salt (disassembling the dll for example) and of course the number of iterations.
What is the security risk of this, given for granted that the password in itself is not so easily retrievable (yes let's give it for granted now)?
I am assuming that without the password decrypting would be impossible, or at least it would require some time to brute force... or is it some analysis of the decrypted files possible?
An obvious concern is that stolen code is less easily detectable than a stolen DB...