如何rsa使用javascript加密或解密数据?
问题描述:
请使用(RSA)算法使用公钥加密技术加密和解密文件或文本代码...在html,css,javascript
Please give me an code for encrypt and decrypt file or text using public key cryptography using (RSA) algorithm ...in html,css,javascript
答
HTML,CSS和JavaScript不适用于加密服务,这就是为什么需要一些后端框架,如C#或其他服务器端语言。您可以使用后端语言(ASP.NET,PHP或Node.js)查找加密服务,也可以等到JavaScript开始支持这些功能,W3 Consortium正在为JavaScript提供这些API。
您可能需要等待一段时间,直到您获得基于标准的JavaScript框架或API才能执行Web应用程序。您可以在此之前阅读 Web开发中的Web加密API [ ^ ]由W3.Org。
HTML, CSS and JavaScript are not designed to work for cryptographic services, that is why you need some back-end framework such as C# or other server-side languages. You can either look for a cryptographic service in your back-end language (ASP.NET, PHP or Node.js) or you can wait until JavaScript starts supporting these features, W3 Consortium is providing these APIs to JavaScript.
You might have to wait for some time, until you get a standard-based framework or API in JavaScript for web applications to perform. You can until then read the Web Cryptography API in Web Development[^] by W3.Org.
参见,例如:
https://www.pidder.de/pidcrypt [ ^ ],
https://github.com/travist/jsencrypt [ ^ ]。-SA
See, for example:
https://www.pidder.de/pidcrypt[^],
https://github.com/travist/jsencrypt[^].—SA