asp.net - Is the same key derived providing the same salt and password using Rfc2898DeriveBytes -


i read this tutorial encryption in .net

it uses rfc2898derivebytes create random key used symmetric algorithm . doesn't save key . , later in decryption method supplies same password , salt , decrypts text .

does mean supplying same salt , password rfc2898derivebytes derived same key ? no need save key , save salt , password ?

yes, correct. identical inputs rfc2898derivebytes provide identical outputs. otherwise, decryption not possible.

the article reference uses term "random" loosely. output of rfc2898derivebytes not random: has high entropy.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -