-3

I'm trying to create an MD hash using the following code I found from Alireza Noori. But I cannot import both the HashAlgorithmProviders nor the CryptographicBuffer Classes. Even when I try to manually add them using the following packages:

using Windows.Security.Cryptography; 
using Windows.Security.Cryptography.Core; 
using Windows.Storage;

How come I cannot import these classes do they need to be installed?

Tebogo Khanye
  • 380
  • 1
  • 7
  • 18

1 Answers1

0

It's apparent your using statements are incorrect, they should look something like:

using System.Windows.Security.Cryptography; // CryptographicBuffer Class package 
using System.Windows.Security.Cryptography.Core; // HashAlgorithmProviders Class package
using Windows.Storage.Streams;

You have to manually either of these .dlll frameworks, depending on your .Net Framework version Goto:

Project >> Add Reference >> Framework >> Add System.Web.ApplicationServices + (.Net 4.5+)

or

Project >> Add Reference >> Framework >> Add System.Web.Security - (.Net 4.0)

Tebogo Khanye
  • 380
  • 1
  • 7
  • 18