Skip to content

Commit 9f1fd41

Browse files
authored
Merge pull request #6560 from MicrosoftDocs/jimwalk/m-move-cryptography
move cryptography docs from UWP to WinUI
2 parents 248be06 + f3750e0 commit 9f1fd41

17 files changed

Lines changed: 133 additions & 71 deletions

.openpublishing.redirection.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8600,6 +8600,66 @@
86008600
"redirect_url": "/windows/apps/develop/security/windows-hello-auth-service",
86018601
"redirect_document_id": false
86028602
},
8603+
{
8604+
"source_path": "uwp/security/cryptography.md",
8605+
"redirect_url": "/windows/apps/develop/security/cryptography",
8606+
"redirect_document_id": false
8607+
},
8608+
{
8609+
"source_path": "uwp/security/certificates.md",
8610+
"redirect_url": "/windows/apps/develop/security/certificates",
8611+
"redirect_document_id": false
8612+
},
8613+
{
8614+
"source_path": "uwp/security/cryptographic-keys.md",
8615+
"redirect_url": "/windows/apps/develop/security/cryptographic-keys",
8616+
"redirect_document_id": false
8617+
},
8618+
{
8619+
"source_path": "uwp/security/data-protection.md",
8620+
"redirect_url": "/windows/apps/develop/security/data-protection",
8621+
"redirect_document_id": false
8622+
},
8623+
{
8624+
"source_path": "uwp/security/macs-hashes-and-signatures.md",
8625+
"redirect_url": "/windows/apps/develop/security/macs-hashes-signatures",
8626+
"redirect_document_id": false
8627+
},
8628+
{
8629+
"source_path": "uwp/security/export-restrictions-on-cryptography.md",
8630+
"redirect_url": "/windows/apps/develop/security/export-restrictions-cryptography",
8631+
"redirect_document_id": false
8632+
},
8633+
{
8634+
"source_path": "uwp/security/common-cryptography-tasks.md",
8635+
"redirect_url": "/windows/apps/develop/security/common-cryptography-tasks",
8636+
"redirect_document_id": false
8637+
},
8638+
{
8639+
"source_path": "uwp/security/create-random-numbers.md",
8640+
"redirect_url": "/windows/apps/develop/security/create-random-numbers",
8641+
"redirect_document_id": false
8642+
},
8643+
{
8644+
"source_path": "uwp/security/compare-buffers.md",
8645+
"redirect_url": "/windows/apps/develop/security/compare-buffers",
8646+
"redirect_document_id": false
8647+
},
8648+
{
8649+
"source_path": "uwp/security/convert-between-strings-and-binary-data.md",
8650+
"redirect_url": "/windows/apps/develop/security/convert-between-strings-binary-data",
8651+
"redirect_document_id": false
8652+
},
8653+
{
8654+
"source_path": "uwp/security/copy-to-and-from-byte-arrays.md",
8655+
"redirect_url": "/windows/apps/develop/security/copy-to-from-byte-arrays",
8656+
"redirect_document_id": false
8657+
},
8658+
{
8659+
"source_path": "uwp/security/encode-and-decode-data.md",
8660+
"redirect_url": "/windows/apps/develop/security/encode-decode-data",
8661+
"redirect_document_id": false
8662+
},
86038663
{
86048664
"source_path": "hub/apps/develop/security-and-identity.md",
86058665
"redirect_url": "/windows/apps/develop/security/",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Intro to certificates
3-
description: This article discusses the use of certificates in Universal Windows Platform (UWP) apps.
3+
description: This article discusses the use of certificates in WinUI apps.
44
ms.assetid: 4EA2A9DF-BA6B-45FC-AC46-2C8FC085F90D
55
ms.date: 02/08/2017
66
ms.topic: article
@@ -12,11 +12,11 @@ ms.localizationpriority: medium
1212

1313

1414

15-
This article discusses the use of certificates in Universal Windows Platform (UWP) apps. Digital certificates are used in public key cryptography to bind a public key to a person, computer, or organization. The bound identities are most often used to authenticate one entity to another. For example, certificates are often used to authenticate a web server to a user and a user to a web server. You can create certificate requests and install or import issued certificates. You can also enroll a certificate in a certificate hierarchy.
15+
This article discusses the use of certificates in WinUI apps. Digital certificates are used in public key cryptography to bind a public key to a person, computer, or organization. The bound identities are most often used to authenticate one entity to another. For example, certificates are often used to authenticate a web server to a user and a user to a web server. You can create certificate requests and install or import issued certificates. You can also enroll a certificate in a certificate hierarchy.
1616

1717
### Shared certificate stores
1818

19-
UWP apps use the new isolationist application model introduced in Windows 8. In this model, apps run in low-level operating system construct, called an app container, that prohibits the app from accessing resources or files outside of itself unless explicitly permitted to do so. The following sections describe the implications this has on public key infrastructure (PKI).
19+
WinUI apps use the new isolationist application model introduced in Windows 8. In this model, apps run in low-level operating system construct, called an app container, that prohibits the app from accessing resources or files outside of itself unless explicitly permitted to do so. The following sections describe the implications this has on public key infrastructure (PKI).
2020

2121
### Certificate storage per app container
2222

uwp/security/common-cryptography-tasks.md renamed to hub/apps/develop/security/common-cryptography-tasks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ These articles provide example code for common Universal Windows Platform (UWP)
1313

1414
| Topic | Description |
1515
|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
16-
| [Create random numbers](create-random-numbers.md) | This example code shows how to create a random number or buffer for use in cryptography in an UWP app. |
17-
| [Compare buffers](compare-buffers.md) | This example code shows how to compare buffers in an UWP app. |
18-
| [Convert between strings and binary data](convert-between-strings-and-binary-data.md) | This example code shows how to convert between strings and binary data in an UWP app. |
19-
| [Copy to and from byte arrays](copy-to-and-from-byte-arrays.md) | This example code shows how to copy to and from byte arrays in an UWP app. |
20-
| [Encode and decode data](encode-and-decode-data.md) | This example code shows how to encode and decode base64 and hexadecimal data in an UWP app. |
16+
| [Create random numbers](create-random-numbers.md) | This example code shows how to create a random number or buffer for use in cryptography in a WinUI app. |
17+
| [Compare buffers](compare-buffers.md) | This example code shows how to compare buffers in a WinUI app. |
18+
| [Convert between strings and binary data](convert-between-strings-binary-data.md) | This example code shows how to convert between strings and binary data in a WinUI app. |
19+
| [Copy to and from byte arrays](copy-to-from-byte-arrays.md) | This example code shows how to copy to and from byte arrays in a WinUI app. |
20+
| [Encode and decode data](encode-decode-data.md) | This example code shows how to encode and decode base64 and hexadecimal data in a WinUI app. |
2121

uwp/security/compare-buffers.md renamed to hub/apps/develop/security/compare-buffers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Compare buffers
3-
description: This example code shows how to compare buffers in a Universal Windows Platform (UWP) app.
3+
description: This example code shows how to compare buffers in a WinUI app.
44
ms.assetid: CB086E51-544A-470D-B7C8-C055271CD615
55
ms.date: 02/08/2017
66
ms.topic: article
@@ -11,9 +11,9 @@ ms.localizationpriority: medium
1111

1212

1313

14-
This example code shows how to compare buffers in a Universal Windows Platform (UWP) app.
14+
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.

uwp/security/convert-between-strings-and-binary-data.md renamed to hub/apps/develop/security/convert-between-strings-binary-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Convert between strings and binary data
3-
description: This example code shows how to convert between strings and binary data in a Universal Windows Platform (UWP) app.
3+
description: This example code shows how to convert between strings and binary data in a WinUI app.
44
ms.assetid: AED4C74F-E63B-4980-BB4D-28ACCC1AB58B
55
ms.date: 02/08/2017
66
ms.topic: article
@@ -11,9 +11,9 @@ ms.localizationpriority: medium
1111

1212

1313

14-
This example code shows how to convert between strings and binary data in a Universal Windows Platform (UWP) app.
14+
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.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Copy to and from byte arrays
3-
description: This example code shows how to copy to and from byte arrays in a Universal Windows Platform (UWP) app.
3+
description: This example code shows how to copy to and from byte arrays in a WinUI app.
44
ms.assetid: C343B08C-1FA1-40FD-8CA5-7FC9B707C5E3
55
ms.date: 02/08/2017
66
ms.topic: article
@@ -11,9 +11,9 @@ ms.localizationpriority: medium
1111

1212

1313

14-
This example code shows how to copy to and from byte arrays in a Universal Windows Platform (UWP) app.
14+
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.

uwp/security/create-random-numbers.md renamed to hub/apps/develop/security/create-random-numbers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ms.localizationpriority: medium
1111

1212

1313

14-
This example code shows how to create a random number or buffer for use in cryptography in a Universal Windows Platform (UWP) app.
14+
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.
File renamed without changes.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Cryptography
3-
description: The article provides an overview of the cryptography features available to Universal Windows Platform (UWP) apps. For detailed information on particular tasks, see the table at the end of this article.
3+
description: The article provides an overview of the cryptography features available to WinUI apps. For detailed information on particular tasks, see the table at the end of this article.
44
ms.assetid: 9C213036-47FD-4AA4-99E0-84006BE63F47
55
ms.date: 02/08/2017
66
ms.topic: article
@@ -12,7 +12,7 @@ ms.localizationpriority: medium
1212

1313

1414

15-
The article provides an overview of the cryptography features available to Universal Windows Platform (UWP) apps. For detailed information on particular tasks, see the table at the end of this article.
15+
The article provides an overview of the cryptography features available to WinUI apps. For detailed information on particular tasks, see the table at the end of this article.
1616

1717
## Terminology
1818

@@ -135,11 +135,11 @@ The following articles provide more detail on security scenarios:
135135

136136
| Topic | Description |
137137
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
138-
| [Certificates](certificates.md) | This article discusses the use of certificates in UWP apps. Digital certificates are used in public key cryptography to bind a public key to a person, computer, or organization. The bound identities are most often used to authenticate one entity to another. For example, certificates are often used to authenticate a web server to a user and a user to a web server. You can create certificate requests and install or import issued certificates. You can also enroll a certificate in a certificate hierarchy. |
138+
| [Certificates](certificates.md) | This article discusses the use of certificates in WinUI apps. Digital certificates are used in public key cryptography to bind a public key to a person, computer, or organization. The bound identities are most often used to authenticate one entity to another. For example, certificates are often used to authenticate a web server to a user and a user to a web server. You can create certificate requests and install or import issued certificates. You can also enroll a certificate in a certificate hierarchy. |
139139
| [Cryptographic keys](cryptographic-keys.md) | This article shows how to use standard key derivation functions to derive keys and how to encrypt content using symmetric and asymmetric keys. |
140-
| [Data protection](data-protection.md) | This article explains how to use the [DataProtectionProvider](/uwp/api/Windows.Security.Cryptography.DataProtection.DataProtectionProvider) class in the [Windows.Security.Cryptography.DataProtection](/uwp/api/Windows.Security.Cryptography.DataProtection) namespace to encrypt and decrypt digital data in a UWP app. |
141-
| [MACs, hashes, and signatures](macs-hashes-and-signatures.md) | This article discusses how message authentication codes (MACs), hashes, and signatures can be used in UWP apps to detect message tampering. |
142-
| [Export restrictions on cryptography](export-restrictions-on-cryptography.md) | Use this info to determine if your app uses cryptography in a way that might prevent it from being listed in the Microsoft Store. |
143-
| [Common cryptography tasks](common-cryptography-tasks.md) | These articles provide example code for common UWP cryptography tasks, such as creating random numbers, comparing buffers, converting between strings and binary data, copying to and from byte arrays, and encoding and decoding data. |
140+
| [Data protection](data-protection.md) | This article explains how to use the [DataProtectionProvider](/uwp/api/Windows.Security.Cryptography.DataProtection.DataProtectionProvider) class in the [Windows.Security.Cryptography.DataProtection](/uwp/api/Windows.Security.Cryptography.DataProtection) namespace to encrypt and decrypt digital data in a WinUI app. |
141+
| [MACs, hashes, and signatures](macs-hashes-signatures.md) | This article discusses how message authentication codes (MACs), hashes, and signatures can be used in WinUI apps to detect message tampering. |
142+
| [Export restrictions on cryptography](export-restrictions-cryptography.md) | Use this info to determine if your app uses cryptography in a way that might prevent it from being listed in the Microsoft Store. |
143+
| [Common cryptography tasks](common-cryptography-tasks.md) | These articles provide example code for common WinUI cryptography tasks, such as creating random numbers, comparing buffers, converting between strings and binary data, copying to and from byte arrays, and encoding and decoding data. |
144144

145145

0 commit comments

Comments
 (0)