this post was submitted on 22 Aug 2023
3 points (100.0% liked)
Cryptography
321 readers
13 users here now
Questions, answers, discussions, and literature on the theory and practice of cryptography
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This might help: https://www.scottbrady91.com/jose/json-web-encryption
Looks like it uses RSA so what I said above I think still applies.
EDIT: It is called JWE or JSON Web Encryption for help with what keywords you should search. There are also other symmetric algos you can use with RSA like chacha20, but I think it is best to start with AES just because it has been used for years and is very well documented.
TIL that RSA allows maximum 245 character payload. But I guess that doesn't apply to JWE. Thanks for the suggestion, I'm researching ๐๐ซก