java - How to send app data securely to a recipient/server -
java - How to send app data securely to a recipient/server -
i'm developing android app user has fill out , send info of few text fields recipient/server, enable feature.
the big issue how in secure way protected against e.g. decompiling. concern not security during transport rather security of transport medium.
what i've thought/read far:
i send info via mail service java mail service api. first of all, don't want require user has come in mail service credentials , smtp server. mean have include credentials mail service business relationship in app, though. avoid situation decompiles app , takes on mail service account, thought of encrypting methods, if save aes encrypted version of password, attacker decompile app , add together syso output decrypted password. same applies oauth authentication because have store authentication token. in add-on mail service version, read getting password post request web service, doesn't seem safer @ all.
i search free smtp server without need of credentials, want can rely on instead of waking each day , looking if service still works.
send info web service. okay require more work me, take that, if there solution without saving credentials in app or having web service accepts info everybody.
have overlooked something? or there no safe method without asking user mail service credentials or google business relationship etc. ?
oauth work. nice thing oauth if token compromised can revoked on server side.
you create web service accepts tcp connections on port. have authentication mechanism illustration digest authentication carried out before accepting data.
another alternative utilize api such golgi. golgi requires developer key, app key , app instance id connect servers , send data. in event these credentials somehow compromised can alter app key , force new version of app through play store.
java android security encryption
Comments
Post a Comment