简体   繁体   中英

Encrypt a Data in Jquery and Decrypt it in Server side code MVC C#

is there some encryption time that will encrypt a data and possible to Decrypt it in C# code?? could you give me some ideas i just need to encrypt a data and decrypt it in the server side codes having trouble finding one.

Nothing you do in javascript is going to be able to prevent someone from using the developers tool to see the unencrypted values. At best you will prevent novices from peeking, but it will be trivially easy to see what the JS code is doing for any developer/techie, and thus see the value you are trying to protect.

If you are trying to protect data during transmission, use SSL, if you are trying to encrypt something on the client side, in JS, to prevent people from using the developers tools to see the value in google chrome, good luck.

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