Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:46:44+00:00 2026-06-02T07:46:44+00:00

Hello i actually develop a Ios application This application use a PHP webservice to

  • 0

Hello i actually develop a Ios application
This application use a PHP webservice to get data (convert in JSON) from mysql.
Actually it work pretty fine.

But the problem is :
If i want to update, delete, an information.

E.g :

@interface Base : NSManagedObject

@property (nonatomic, retain) NSNumber * id;
@property (nonatomic, retain) NSNumber * latitude;
@property (nonatomic, retain) NSNumber * longitude;
@property (nonatomic, retain) NSString * mail;      
...

this class is Fill (after an http request, get JSON) …

problem :

self.mail = @"newmail@mail.com";

how can i update this data to my MySQL Databases ?

  • Create another WebService and send data by url ?

    http://mywebsite/service/baseClassUpdate.php?id=XX&mail=XXXX
    
  • if yes : is it “Safe” ? cause if someone find this url …
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:46:45+00:00Added an answer on June 2, 2026 at 7:46 am

    It’s definitely not safe to just send the mail update by a plain request.
    First of all those actions should be followed by a password verification and second you should add a md5 hash signature verification to the end and verify that signature on the server…

    Also you should send the password in a one way hashed format (md5 or SHA1) and verify the hashed value with what you have in your web server database…

    Edit
    To reply to your question to this answer

    Here is what I would do:
    I would do this:

    website/script.php?id=XX&mail=XXXX&password=MD5Pass&signature=MD5signature=MD5Signature
    

    the md5signature should be the md5 hash value of all parameters (id) (mail) (password) and a secret password, like mySecr3tPass
    So if id=12, mail = mymail@mail.com and pass=AERF124F, the signature would be the MD5 hash of 12mymail@mail.comAERF124FmySecr3tPass, which would be 0b9492395c9c1a73a6622cab5a6a4de5

    So the request would be: website/script.php?id=12&mail=mymail@mail.com&password=AERF124F&signature=0b9492395c9c1a73a6622cab5a6a4de5

    So in your php script you sould calculate the md5 hash of all parameters + the secret passphrase and see if those match.
    If they match, the request is valid, you can proceed, if they don’t match someone is trying to hijack the database, ignore it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have this query... if (isset($_REQUEST['deletePost'])) { $q = $dbc -> prepare(DELETE FROM
Hello I'm trying to take backup from mysql command line client. I'm using mysqldump
Hello I'm actually using Ryan' Bates cancan gem authorization to make my application's users
Hello I am just thinking how to actually manage the database MongoDB or MySQL
hello what I'm currently dealing with is the ability to get input from a
Hello Everyone Iam trying to bulk insert data from .dat file(unloaded from sybase) in
Hello I was just writing a little Android application which takes an image from
What does this code actually do? @array = ( 'hai','hello','bar','foo' ) ; print grep
Hello frnds actually i have a array of arrays as given below:-` parrent array{
I am following this tutorial https://developer.android.com/guide/tutorials/views/hello-tabwidget.html and have completed it. Now I would actually

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.