In previous post, i’ve described how to create and send encrypted with one time cypher data to server, now its time to receive this data on server side. I will not describe how to setup environment and deploy it some server.
We have encrypted key in request header, and encrypted with this key our ‘very secure data’ in the request body:
Class APICrypt to deal with this data and key to return decrypted parameters