我今天在WinRT中創建了一個簡單的單向SHA-256哈希,並意識到它不起作用。我做了驗證,顯然得到了這個:如何在WinRT中創建SHA-256散列?
◦APISystem.Security.Cryptography.SHA256Managed在MSCORLIB,不支持此應用程序 類型 公鑰= B77A5C561934E089。 CryptoWinRT.exe調用此API。 ◦API MSCORLIB中的System.Security.Cryptography.HashAlgorithm, PUBLICKEYTOKEN = B77A5C561934E089不適用於此應用程序 類型。 CryptoWinRT.exe調用此API。 ◦API System.Security.Cryptography.SHA256Managed。#ctor in MSCORLIB, PUBLICKEYTOKEN = B77A5C561934E089不適用於此應用程序 類型。 CryptoWinRT.exe調用此API。 ◦API 在MSCORLIB中,System.Security.Cryptography.HashAlgorithm.ComputeHash(System.Byte []) ,此 應用程序類型不支持PUBLICKEYTOKEN = B77A5C561934E089。 CryptoWinRT.exe調用此API。
這是什麼替代?爲什麼在WinRT中不允許這樣一件小事?
複製的[如何執行在C++的WinRT一個SHA512散列?](http://stackoverflow.com/questions/12355417/how-do-i-perform-a-sha512-hash-in- c-winrt)(不同的哈希算法,但答案是一樣的。) –