I am doing AES encryption in my C # code using a key that is generated using a function PasswordDerivedKey, passing a password and salt of 12 bytes. I implemented the logic in the application code, and the โpasswordโ is the name of the user of the registered user, and the salt is static byte-aray.
What is the best way to store password and salt, as someone can easily determine the salt (reflecting my code) and username.
What are the alternatives I can take to safely store my password and salt. I don't think storing them in my application code is the best way to do this.
Change . By password, I meant the access key used in the PBKDF function (to get the encryption key), and not the password provided by the user. I am using windows authentication
source
share