Windows 8 Metro cryptography - using SignedCms Pkc

2019-08-06 00:18发布

问题:

SignedCms is not supported in Windows 8 Metro. Is there an equivalent/replacement for it in WinRT?

Sample of the code i need to convert to Metro below:

message.Data = new SignedCms(new ContentInfo(Encoding.ASCII.GetBytes(toDigest)), true);
message.Data.Decode(part.BinaryContent);

回答1:

Found what i was looking for here:

http://dotnetspeak.com/index.php/2011/11/encrypting-and-decrypting-data-in-winrt-2/