N
N
nazimov2014-10-27 13:25:10
.NET
nazimov, 2014-10-27 13:25:10

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

3 answer(s)
B
bmforce, 2014-10-27
@nazimov

stackoverflow.com/questions/24792142/hmacsha256-on...

B
Bziks, 2014-10-27
@Bziks

You need to look at what error the studio produces, you may need to connect reference

V
Vyacheslav Zolotov, 2015-03-28
@SZolotov

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 question

Ask a Question

731 491 924 answers to any question