What I am doing?
- I am building an application where users signIn with Google in order to use my App.
- Since Server has no idea is request is coming from a device, a trust mechanism is needed in order to handshake.
- I created pair (private key, public key) using RSA
algorithm. The intent is that public key will be staying on device(with application).
- Once user signs in, application encrypts user information with public key and sends to server using REST API
. The server validates and inturn returns a token, that client(iPhone app) can reuse to communicate further with server.
Question
- Since I am new to developing iOS
(or any mobile) application, I wanted to know where this public key will be stored in my iOS
application