Rfc2898DeriveBytes replaces PasswordDeriveBytes...

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top