Search code examples
c#cryptojs

C# equivalents for JavaScript Cryptography API functions


The new Cryptography API for Javascript has these functions:

window.crypto.subtle.sign

window.crypto.subtle.importKey

Please what are their equivalents in C#

Thanks.

EDIT: I am asking for the c# equivalents of the JavaScript Cryptography functions implemented here: http://www.w3.org/TR/WebCryptoAPI/


Solution

  • You can find the equlivalents(most of them) residing in following namespace.

    using System.Security.Cryptography;
    

    Here's a more detailed list of the available algorithms : MSDN Reference