Encrypt & POST flow:
1. Data in JSON format
2. Convert to buffer
3. Encryption with public key (pem)
4. Convert to base64
5. POST data to the server via application/json format (field key: encrypted)
The detailed encryption process can refer to the code below