Java – symmetric key encryption algorithm
I am looking for a secure symmetric key encryption algorithm compatible with JavaScript and Java
I've tried to implement one, but I have some coding problems
Solution
You don't want to use JavaScript encryption, especially on the client side where it is open to tampering, and there is no cryptographically secure random number generator
Are you trying to write your own encryption algorithm? You have opposed the safe world, dear everything Not a practical tutorial explaining how encryption works is so scary because they don't understand the mathematics behind mathematics. We've seen this:
If you don't understand encryption, then what "password security pseudo-random number generator" is actually and its common attack, you shouldn't do that
If you don't understand something like border attack, you shouldn't do it
If you don't understand what happens in encryption and read at least two books, you don't realize its business
Encryption is not a magic black box, it is very easy to solve, even without touching the code of the packaged solution at any point
What should you do? Forget JS encryption I know, I've tried This is a waste of time Learn from my mistakes
To obtain an SSL certificate, SSL is the best way for us to encrypt mail at the transport level from server to client It's as safe as you can get If you face advertisements that can beat SSL, please trust me, your JS based encryption will also be damaged
Once it is tampered with on a secure server, it is encrypted Another thing is a long way to go to waste your time
In addition, read these books:
Then, when you understand that they come back and scream at me why I'm wrong, I don't understand how much JS you need to encrypt on the client