How to encrypt/decrypt URL parameters in javascript?

后端 未结 2 1312
广开言路
广开言路 2020-12-29 08:51

Before anyone jumps in and says, \"Oh!! that\'s a bad idea\", I know it is.

I want to keep both the key and value in the query string to be not easily visible to the

2条回答
  •  无人及你
    2020-12-29 09:19

    If you don't looking for serious strong crypto, you can use ROT13:

    http://en.wikipedia.org/wiki/ROT13

    This is enough for slightly obfuscate keys/values in the your URLs.

提交回复
热议问题