Edit

Share via


Common cryptography tasks

These articles provide example code for common Universal Windows Platform (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.

Topic Description
Create random numbers This example code shows how to create a random number or buffer for use in cryptography in a WinUI app.
Compare buffers This example code shows how to compare buffers in a WinUI app.
Convert between strings and binary data This example code shows how to convert between strings and binary data in a WinUI app.
Copy to and from byte arrays This example code shows how to copy to and from byte arrays in a WinUI app.
Encode and decode data This example code shows how to encode and decode base64 and hexadecimal data in a WinUI app.