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
Post a Comment