简体   繁体   中英

Javascript or Jquery Encryption techniques

I would like to have a public key encryption where i want some javascript function to encrypt some data. Is there any Javascript encryption techniques with high security?

Thanks

Javascript AES encryption provides a good solution to this question.

I think that encrypting things with javascript can work just fine, if you have a good use case for it. The fact that the code is open shouldn't matter at all, because encryption algorithms are well known anyway. Where you are going to run into problems is the way in which the private key is supplied. DO NOT put the private key in your javascript code. The key should be provided by the user only. As long as you follow that rule, you should be good.

I would generally suggest that there is little reason to encrypt anything in JavaScript. If you need to transport something over the wire, utilize a secure wire protocol instead.

JavaScript has a number of deficiencies for this sort of thing, not the least of which is the fact that it sits in very accessible memory space if used in a browser context.

javascript代码是在线查看,所以任何通过javascript加密的方法都会明显可见,我认为没有任何现实的方法可以不使用服务器端语言(即php)

如果您将您的网页置于https下,那么您的所有数据都将被加密,无需额外的算法/库/头痛

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM