开发者

Jasypt and javascript

开发者 https://www.devze.com 2023-03-16 01:36 出处:网络
Does anyone know how to encrypt in javascript (maybe with sjcl?), post to a webapp and decrypt with java?

Does anyone know how to encrypt in javascript (maybe with sjcl?), post to a webapp and decrypt with java?

I wish to intercept some of a form data, encrypt it and then post to my spring applica开发者_StackOverflow中文版tion. ? already use jasypt PBEWITHSHA256AND128BITAES-CBC-BC algorithm for database encryption.


Any client-based symmetric encryption algorithm is likely going to be hackable since the code and keys is all sitting right there in the web page.

Wouldn't it be better to just use https to deliver the data to your server (the transport will be encrypted by https) and then do whatever final encryption you want on the server before storing it or passing to your spring application?


Answering my own question: I've found the precious jCrypting javascript library (based on jquery) and developed a spring integration (https://gitorious.org/jcryptingspring)

0

精彩评论

暂无评论...
验证码 换一张
取 消