2016-01-27 137 views
0

我需要在oAuth 1a應用程序中使用Windows.Security.CryptographyWindows.Storage.Streams,但無法找到任何程序包或程序集。如何在Visual Studio 2013中添加Windows.Security.Cryptography

有人可以告訴我如何使用這兩個類。

使用System.Security不會讓我導入下面的類

enter image description here

+0

您正在創建什麼類型的應用程序? web api? – Martin

+0

我正在創建一個正在執行一些API請求的正常ASP.NET Web應用程序 –

+0

System.Security.Cryptography命名空間位於** mscorlib **中。 – Enigmativity

回答

-1

Windows.Security.Cryptography是Windows應用程序開發在Windows SDK的一部分。對於您的ASP.Net應用程序,您可以添加對System.Security.Cryptography的參考

+0

這不是一個完整的答案。你應該把這個作爲評論的問題。 – Enigmativity

+0

是的,它看起來像一個Windows應用程序。我正在嘗試構建一個使用oAuth 1.0三腳架方法的網絡系統。所以我需要用於加密的庫。有沒有其他我可以用於Asp.net的Web應用程序? –

+0

我想你不能在你的asp.net應用程序中直接使用這些類。你可能不得不重寫你的類來使用System.Security,或者如果你不想在這些類中編輯太多,那麼你可以使用System.Security創建包裝類(比如說CryptographicBuffer)。無論哪種方式,我相信你將不得不做一些工作! – Martin

相關問題