Skip to content

Commit 309253e

Browse files
Fix a typo in the HashAlgorithm example. (dotnet#7391)
The example uses SHA-256 but the caption says it uses SHA1CryptoServiceProvider.
1 parent ccc0316 commit 309253e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Security.Cryptography/HashAlgorithm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.
7070
7171
## Examples
72-
The following code example computes the <xref:System.Security.Cryptography.SHA1CryptoServiceProvider> hash for an array. This example assumes that there is a predefined byte array `dataArray[]`. <xref:System.Security.Cryptography.SHA1CryptoServiceProvider> is a derived class of <xref:System.Security.Cryptography.HashAlgorithm>.
72+
The following code example computes the <xref:System.Security.Cryptography.SHA256> hash for an array. This example assumes that there is a predefined byte array `dataArray[]`. <xref:System.Security.Cryptography.SHA256> is a derived class of <xref:System.Security.Cryptography.HashAlgorithm>.
7373
7474
:::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic HashAlgorithm Example/CPP/source.cpp" id="Snippet1":::
7575
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic HashAlgorithm Example/CS/source.cs" id="Snippet1":::

0 commit comments

Comments
 (0)