How to securely implement FTP credentials into an android app?

Austin K.

How does one securely store the password and username inside of an android app that connects to an FTP server? Can't anyone decompile an .apk and see its source in more or less an easy to read format?

I'm implementing the ability to upload photos in an app I'm working on and they are then sent to an FTP server in the background. Below is how most examples show how to do it. I don't think there's much of a way around this.

String username = "Austin"; //Example Username
String password = "123456"; //Example Password
//FTP Client init after this and then connect.
Thomas Raffelsieper

The basic problem with ftp is that it transmits the password in plain text, so even if you didn't save it plain within your app, it can be read with a simple package sniffing tool.

Besides that, the generated bytecode will contain the strings if you do not transform them. An easy way to do this is to create the Base64 representation: Base64 Java encode and decode a string

A sophisticated way would be to use a crypto lib like scrypt or bcrypt, but given the mentioned security flaw within ftp itself that would be like using a sledgehammer to crack a nut: https://github.com/wg/scrypt

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to store FTP credentials securely in C# application?

From Dev

How to securely store external auth credentials in google app engine

From Dev

How to Securely Store Various Credentials?

From Dev

How to securely implement SQL queries in a Java desktop app

From Dev

Securely implement remember me in Android with WebApi

From Dev

Where to securely store Web API credentials in iPhone app?

From Dev

How to implement SSO in android app

From Dev

How to securely implement Facebook login and design database?

From Dev

How to securely implement Facebook login and design database?

From Dev

How to securely authenticate AD user in Powershell (encrypt credentials)

From Dev

How to send my Credentials securely using smtpClient with ASP.Net

From Dev

How can credentials be securely distributed in a cloud computing environment?

From Dev

How to implement a "loading" indicator into Android app

From Dev

How to implement app links on android marshmallow?

From Dev

How to implement Datastore in java based android app?

From Dev

How to implement the imageView as developed in fyuse app android?

From Dev

How to implement language setting in android app?

From Dev

How to implement deep linking in my Android App

From Dev

How can I securely implement a notification system using socket?

From Dev

How to store a json data securely in phonegap android?

From Dev

how to securely store encryption keys in android?

From Dev

How to securely use credentials outside web.config for ASP.NET & Azure

From Dev

How do you configure Netplan on Ubuntu to store 802.1x credentials securely?

From Dev

How to let app users execute arbitrary SELECT statements securely?

From Dev

How to post password from iOS app to PHP server securely?

From Dev

How can I securely store my AWS keys for an app on AppHarbor?

From Dev

How to securely deploy PPK file in WPF C# app?

From Dev

Storing MongoDB database credentials inside Android app

From Dev

How would you implement this tutorial screen in Android app?

Related Related

  1. 1

    How to store FTP credentials securely in C# application?

  2. 2

    How to securely store external auth credentials in google app engine

  3. 3

    How to Securely Store Various Credentials?

  4. 4

    How to securely implement SQL queries in a Java desktop app

  5. 5

    Securely implement remember me in Android with WebApi

  6. 6

    Where to securely store Web API credentials in iPhone app?

  7. 7

    How to implement SSO in android app

  8. 8

    How to securely implement Facebook login and design database?

  9. 9

    How to securely implement Facebook login and design database?

  10. 10

    How to securely authenticate AD user in Powershell (encrypt credentials)

  11. 11

    How to send my Credentials securely using smtpClient with ASP.Net

  12. 12

    How can credentials be securely distributed in a cloud computing environment?

  13. 13

    How to implement a "loading" indicator into Android app

  14. 14

    How to implement app links on android marshmallow?

  15. 15

    How to implement Datastore in java based android app?

  16. 16

    How to implement the imageView as developed in fyuse app android?

  17. 17

    How to implement language setting in android app?

  18. 18

    How to implement deep linking in my Android App

  19. 19

    How can I securely implement a notification system using socket?

  20. 20

    How to store a json data securely in phonegap android?

  21. 21

    how to securely store encryption keys in android?

  22. 22

    How to securely use credentials outside web.config for ASP.NET & Azure

  23. 23

    How do you configure Netplan on Ubuntu to store 802.1x credentials securely?

  24. 24

    How to let app users execute arbitrary SELECT statements securely?

  25. 25

    How to post password from iOS app to PHP server securely?

  26. 26

    How can I securely store my AWS keys for an app on AppHarbor?

  27. 27

    How to securely deploy PPK file in WPF C# app?

  28. 28

    Storing MongoDB database credentials inside Android app

  29. 29

    How would you implement this tutorial screen in Android app?

HotTag

Archive