R
Rob R. Ainscough
Dim slt(0) As Byte
Dim pdb As New PasswordDeriveBytes(strKey24, slt)
Dim bytDerivedKey() As Byte = pdb.GetBytes(24)
VS 2005 issues a warning for using .GetBytes() -- the exact warning:
Warning 1 'Public Overrides Function GetBytes(cb As Integer) As Byte()' is
obsolete: 'Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key
material from a password and is preferred in new applications.'...
Help isn't providing much assistance on how to migrate/resolve the
warning -- and suggestions that would satisfy VS 2005 and also keep my code
functioning the same?
Thanks, Rob.
Dim pdb As New PasswordDeriveBytes(strKey24, slt)
Dim bytDerivedKey() As Byte = pdb.GetBytes(24)
VS 2005 issues a warning for using .GetBytes() -- the exact warning:
Warning 1 'Public Overrides Function GetBytes(cb As Integer) As Byte()' is
obsolete: 'Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key
material from a password and is preferred in new applications.'...
Help isn't providing much assistance on how to migrate/resolve the
warning -- and suggestions that would satisfy VS 2005 and also keep my code
functioning the same?
Thanks, Rob.