Encrypt
Encryption Step by step
- Generate a random key for payload encryption with 32 characters.
- Encrypt the payload with said key.
- Encrypt key that has been used for step no.2, with RSA using the public key.
- Send encrypted payload as request body.
- Send encrypted key from step no.3 via Key header.
Examples
For other programming language examples, please refer to this: https://github.com/tokopedia/cryptography-example/tree/main/encryption