我需要在oAuth 1a應用程序中使用Windows.Security.Cryptography
和Windows.Storage.Streams
,但無法找到任何程序包或程序集。如何在Visual Studio 2013中添加Windows.Security.Cryptography
有人可以告訴我如何使用這兩個類。
使用System.Security不會讓我導入下面的類
我需要在oAuth 1a應用程序中使用Windows.Security.Cryptography
和Windows.Storage.Streams
,但無法找到任何程序包或程序集。如何在Visual Studio 2013中添加Windows.Security.Cryptography
有人可以告訴我如何使用這兩個類。
使用System.Security不會讓我導入下面的類
Windows.Security.Cryptography
是Windows應用程序開發在Windows SDK的一部分。對於您的ASP.Net應用程序,您可以添加對System.Security.Cryptography
的參考
這不是一個完整的答案。你應該把這個作爲評論的問題。 – Enigmativity
是的,它看起來像一個Windows應用程序。我正在嘗試構建一個使用oAuth 1.0三腳架方法的網絡系統。所以我需要用於加密的庫。有沒有其他我可以用於Asp.net的Web應用程序? –
我想你不能在你的asp.net應用程序中直接使用這些類。你可能不得不重寫你的類來使用System.Security,或者如果你不想在這些類中編輯太多,那麼你可以使用System.Security創建包裝類(比如說CryptographicBuffer)。無論哪種方式,我相信你將不得不做一些工作! – Martin
您正在創建什麼類型的應用程序? web api? – Martin
我正在創建一個正在執行一些API請求的正常ASP.NET Web應用程序 –
System.Security.Cryptography命名空間位於** mscorlib **中。 – Enigmativity