Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 877
user695663 Avatar asked Feb 25 '23 03:02

user695663


1 Answers

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.

like image 61
Dustin Wilhelmi Avatar answered Feb 26 '23 20:02

Dustin Wilhelmi