Encoding data (HTML)
The following example shows how to use the encodeToBase64String to encode a buffer to a base64 string.
function EncodeData( encryptedDataBuffer )
{
try {
// Encode a data buffer to a base64 string.
var base64String = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(encryptedDataBuffer);
}
catch ( ) {
// Handle the error.
}
}