Answer the question
In order to leave comments, you need to log in
How to enable System.Security.Cryptography for a WP 8.1 project?
The project needs to use the HMACSHA1 class to encrypt a string in OTP. But I can't connect System.Security.Cryptography, for some reason the studio doesn't see it.
Is it possible to fix this, or is there a separate library for HMAC?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
You need to look at what error the studio produces, you may need to connect reference
if you are talking about MacAlgorithmProvider provider = MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha256);
then you need to connect:
using Windows.Security.Cryptography;
using Windows.Security.Cryptography.Core;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question