Boiler plate for RSA encryption to avoid Man-in-the-middle attack during networking. Can also be used to generate encrypted QR codes.
- Hello get encrypted into 2048 bits RSA and the QR code is generated.
- If anyone scan the QR code then they get encrpted string.
- Use store private key in server to decrypt the data that gets scanned from the QR code.