Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
}
}