JavaScript Cryptography API 函数的 C# 等效项

本文关键字:Cryptography API 函数 JavaScript | 更新日期: 2023-09-27 18:37:03

新的 Cryptography API for Javascript 具有以下功能:

window.crypto.subtle.sign
window.crypto.subtle.importKey

请问它们在 C# 中的等价物是什么

谢谢。

编辑:我要求在这里实现的JavaScript加密函数的c#等效项:http://www.w3.org/TR/WebCryptoAPI/

JavaScript Cryptography API 函数的 C# 等效项

您可以找到位于以下命名空间中的等价(其中大多数)。

using System.Security.Cryptography;

以下是可用算法的更详细列表: MSDN 参考