B4J Question Mysql connector with jdbc driver and security

tufanv

Expert
Licensed User
Longtime User
Hello,

Instead of using a php file on server side I want to switch to direct connection to server from the app , which I succeeded with :

B4X:
    username="xx"
    password="xx"
    timerayarla
    sql1.Initialize2("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/admin_fs" ,username,password)

I will send this app to mac store but is it safe to use username and password inside the app as it is needed to connect to database ? Can Mac apps decompiled etc ?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
A B4J App is not a Mac App.
A B4J App is based on Java which can be easily decompiled.

You should store the credentials in your php-site and request the data from your app when you need them. You can use ssl connection to secure it. Storing it inside your app is not secure.
 
Upvote 0
Top