How to encrypt in the device and decrypt on the server side the encryption key

What is the best practice for encoding a string with an encryption key (e.g. password) in a device

side (android and ios). And decode this encoded string on the server side using encryption

used on the device side.

+6
source share
2 answers

You can try one of the following

  • RSA Encryption:

    Encryption using the public key in the iOS device and decryption it uses the private key in the web service

  • Web Services Host with SSL Certificates

  • Configure a secure VPN and access it through a VPN.

Since you mentioned password encryption. The most important are sallting and hashing.

+2
source

Isn't it better to use SSL / TLS (e.g. ssh, https, etc.)? These protocols implement an information exchange mechanism to select an encryption algorithm for data transfer.

You might want to read (android) http://developer.android.com/training/articles/security-ssl.html and (iOS) https://developer.apple.com/library/mac/#documentation/security/ conceptual / cryptoservices / SecureNetworkCommunicationAPIs / SecureNetworkCommunicationAPIs.html

0
source

Source: https://habr.com/ru/post/949973/


All Articles