In order to start a session with Mobile Server, a client should call Connect and Login commands.
As a parameter of the Login command, the client should provide username and password for the system. By default Mobile Server expects the username and password to be encrypted.
Mobile Server protocol relies on Diffie-Hellman-Merkle method for generating a shared secret between client and server that is used for encrypting \ decrypting the username and password.
Client sends Connect command with its public key as an input parameter:
Server responds to the Connect command with its public key as output parameter:
Note: Please have in mind that Mobile Server send its public key and expects client's public key in little-endian format. For more information see Appendix