简体   繁体   中英

Encrypt AES in Visual Basic then Decrypt AES in javascript - Server to client

I am looking for a good and simple way to encrypt a value on a visual basic web method and then when I fetch the cyphertext on javascript, to decrypt this.

I believe my options for decryption on javascript are CryptoJS I also found a Website on excryption in visual basic using AES.

My questions are:

  • How can I use CryptoJS or any better method to decrypt the server ciphertext response
  • Am I going about this the right way? Are there any simpler methods?

How can I use CryptoJS or any better method to decrypt the server ciphertext response?

By doing the reverse operation to the one you are doing on the server.

Am I going about this the right way? Are there any simpler methods?

Doing crypto in the browser is almost never a good idea, unless it is TLS - how can the server trust the client? Is there a simpler way? The ceasar cipher is probably simpler as you don't have to encode the result - it's of course also completely unsafe.

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