-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.Issues related to security practices for .NET developers.
Description
The example code for the Rfc2898DeriveBytes
class uses the RNGCryptoServiceProvider
for creating random bytes, but the documentation also states that
RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.
Since this part of the documentation is related to cryptographic code, an effort should be made to keep the examples in the documentation up-to-date, since many developers might just copy and paste these code snippets.
The obsoletion warning for RNGCryptoServiceProvider
only applies to .NET, so I am not sure if this would also affect the .NET framework / standard documentation as well.
Metadata
Metadata
Assignees
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.Issues related to security practices for .NET developers.