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 an UWP app.
Compare buffers This example code shows how to compare buffers in an UWP app.
Convert between strings and binary data This example code shows how to convert between strings and binary data in an UWP app.
Copy to and from byte arrays This example code shows how to copy to and from byte arrays in an UWP app.
Encode and decode data This example code shows how to encode and decode base64 and hexadecimal data in an UWP app.