Database access security iOS
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Database access security iOS
Hi:
I'm developing an App for iOS that can read and writa data to a database in a server. Everything can be done, but we have a concern about putting the login data inside the code. Does anyone knows a best practice in order to connect to a database without embedding the user and password inside the code?
Thanks
I'm developing an App for iOS that can read and writa data to a database in a server. Everything can be done, but we have a concern about putting the login data inside the code. Does anyone knows a best practice in order to connect to a database without embedding the user and password inside the code?
Thanks
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Database access security iOS
SSL is the solution most sites use to protect the stream.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Database access security iOS
If they are in the script then password protection on the stack will secure them
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: Database access security iOS
Thanks for your comments!
Re: Database access security iOS
Hi ekek,
another way is to store the MD5Digest of the password in a custom property!
Can be compared but that's it
...
## DO this in the message box or wehreever, at least NOT in the stack!
set the cMD5Password of stack "your db stack here" to md5digest("Dabatabes password here...")
...
Then you can later ask the user for a password and compare its md5digest with the stored md5digest:
Best
Klaus
another way is to store the MD5Digest of the password in a custom property!
Can be compared but that's it

...
## DO this in the message box or wehreever, at least NOT in the stack!
set the cMD5Password of stack "your db stack here" to md5digest("Dabatabes password here...")
...
Then you can later ask the user for a password and compare its md5digest with the stored md5digest:
Code: Select all
...
ask password clear "Enter password for database access:"
put it into tuserPWD
put the cMD5Password of stack "your db stack here" into tStoredMD5
if tStoredMD5 <> md5digest(tUserPWD) then
## wrong password
exit to top
end if
...
Klaus
-
- Posts: 5
- Joined: Tue Oct 08, 2013 2:26 pm
- Contact:
Re: Database access security iOS
I use SSL for this class of problems.