Skip to content

Commit 926f260

Browse files
committed
fix code fence language tags
1 parent 41c7150 commit 926f260

7 files changed

Lines changed: 9 additions & 9 deletions

hub/apps/develop/security/compare-buffers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.localizationpriority: medium
1313

1414
This example code shows how to compare buffers in a WinUI app.
1515

16-
```cs
16+
```csharp
1717
public void CompareBuffers()
1818
{
1919
// Create a hexadecimal string.

hub/apps/develop/security/convert-between-strings-binary-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.localizationpriority: medium
1313

1414
This example code shows how to convert between strings and binary data in a WinUI app.
1515

16-
```cs
16+
```csharp
1717
public void ConvertData()
1818
{
1919
// Create a string to convert.

hub/apps/develop/security/copy-to-from-byte-arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.localizationpriority: medium
1313

1414
This example code shows how to copy to and from byte arrays in a WinUI app.
1515

16-
```cs
16+
```csharp
1717
public void ByteArrayCopy()
1818
{
1919
// Initialize a byte array.

hub/apps/develop/security/create-random-numbers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.localizationpriority: medium
1313

1414
This example code shows how to create a random number or buffer for use in cryptography in a WinUI app.
1515

16-
```cs
16+
```csharp
1717
public string GenerateRandomData()
1818
{
1919
// Define the length, in bytes, of the buffer.

hub/apps/develop/security/data-protection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To protect data, when you create a [**DataProtectionProvider**](/uwp/api/Windows
2727

2828
The following example shows how to use the [**ProtectAsync**](/uwp/api/windows.security.cryptography.dataprotection.dataprotectionprovider.protectasync) and [**UnprotectAsync**](/uwp/api/windows.security.cryptography.dataprotection.dataprotectionprovider.unprotectasync) methods to asynchronously protect static data to the current user's SID.
2929

30-
```cs
30+
```csharp
3131
using Windows.Security.Cryptography;
3232
using Windows.Security.Cryptography.DataProtection;
3333
using Windows.Storage.Streams;
@@ -112,7 +112,7 @@ namespace SampleProtectAsync
112112

113113
The following example shows how to use the [**ProtectStreamAsync**](/uwp/api/windows.security.cryptography.dataprotection.dataprotectionprovider.protectstreamasync) and [**UnprotectStreamAsync**](/uwp/api/windows.security.cryptography.dataprotection.dataprotectionprovider.unprotectstreamasync) methods to asynchronously protect stream data to the current user's SID.
114114

115-
```cs
115+
```csharp
116116
using Windows.Security.Cryptography;
117117
using Windows.Security.Cryptography.DataProtection;
118118
using Windows.Storage.Streams;

hub/apps/develop/security/encode-decode-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.localizationpriority: medium
1313

1414
This example code shows how to encode and decode base64 and hexadecimal data in a WinUI app.
1515

16-
```cs
16+
```csharp
1717
public void EncodeDecodeBase64()
1818
{
1919
// Define a Base64 encoded string.

hub/apps/develop/security/macs-hashes-signatures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Digital signatures are the public key equivalent of private key message authenti
3434

3535
This example code shows how to use the [**MacAlgorithmProvider**](/uwp/api/Windows.Security.Cryptography.Core.MacAlgorithmProvider) class to create a hashed message authentication code (HMAC).
3636

37-
```cs
37+
```csharp
3838
using Windows.Security.Cryptography;
3939
using Windows.Security.Cryptography.Core;
4040
using Windows.Storage.Streams;
@@ -137,7 +137,7 @@ Digital signatures are the public key equivalent of private key message authenti
137137

138138
The [**CryptographicHash**](/uwp/api/Windows.Security.Cryptography.Core.CryptographicHash) object can be used to repeatedly hash different data without having to re-create the object for each use. The [**Append**](/uwp/api/windows.security.cryptography.core.cryptographichash.append) method adds new data to a buffer to be hashed. The [**GetValueAndReset**](/uwp/api/windows.security.cryptography.core.cryptographichash.getvalueandreset) method hashes the data and resets the object for another use. This is shown by the following example.
139139

140-
```cs
140+
```csharp
141141
public void SampleReusableHash()
142142
{
143143
// Create a string that contains the name of the hashing algorithm to use.

0 commit comments

Comments
 (0)