Encrypted API from android to rails part 2

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

Helper module to perform AES decryption

 

3 Replies to “Encrypted API from android to rails part 2”

  1. Good day! I could have sworn I’ve been to this blog
    before but after checking through some of the post I realized it’s new to me.
    Anyhow, I’m definitely delighted I found it and I’ll be book-marking and checking back frequently!

Leave a Reply

Your email address will not be published. Required fields are marked *