如何rsa使用javascript加密或解密数据? [英] How to rsa Encrypt or decrypt data using javascript?

查看:87
本文介绍了如何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


这篇关于如何rsa使用javascript加密或解密数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆