yingshaoxo / we_love_party

Let's party.
0 stars 0 forks source link

The JWT has problems, it only checks the integrity of the data. It won't do the encryption. #14

Open yingshaoxo opened 1 year ago

yingshaoxo commented 1 year ago

What you need to do is to replace it to JWE.

yingshaoxo commented 1 year ago

Or if you like, you could also do the encryption by yourself.

Here is the leetcode question that I think you may need, have a look at it please:

https://leetcode.com/problems/decode-the-message


The best solution I could imagine for now is: The encryption will generate an alphabet table, which is a dict, does raw_english_letter to encrypted_english_letter job. And the alphabet table generation will only take a_secret_string.

yingshaoxo commented 1 year ago

Here you go, I just made a module for encryption and decryption: https://github.com/yingshaoxo/auto_everything#encryption-and-decryption