admin管理员组文章数量:1279009
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
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
Share Improve this question edited Mar 26, 2012 at 17:54 user229044♦ 239k41 gold badges344 silver badges346 bronze badges asked May 19, 2011 at 3:56 user695663user695663 12.4k8 gold badges27 silver badges32 bronze badges4 Answers
Reset to default 8Javascript 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 code is in plain view online so any encryption method via javascript will be plainly visible, i don't think there's any realistic way to do that without using a server side language (i.e. php)
If you put your web page(s) under https, then ALL your data will be encrypted, no need for additional algorithms/libraries/headaches
本文标签: Javascript or Jquery Encryption techniquesStack Overflow
版权声明:本文标题:Javascript or Jquery Encryption techniques - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741232288a2362328.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论