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

  • Home
  • SEARCH
  • 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 6786311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:13:49+00:00 2026-05-26T17:13:49+00:00

I have a Mobile App (iPhone and Android) which allows user to login to

  • 0

I have a Mobile App (iPhone and Android) which allows user to login to his account, change prefs etc…

I want to add a new feature where the user can buy products through his device or upgrade his service. Everything will run from the device and I want to make each transactions the user make it syncs to the web server.

I have HTTPS setup on my server. I would like to know if:

  1. It is a good practice? or should I simply tell the user to use our website
  2. If “yes”, is HTTPS alone good to process these transactions?

Thanks

  • 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-05-26T17:13:49+00:00Added an answer on May 26, 2026 at 5:13 pm

    yes it’s a good practice.

    first of all ALWAYS use HTTPS.

    make sure your certificate is valid and trusted.

    for iphone:

    • iPhone: HTTPS client cert authentication
    • https://discussions.apple.com/thread/1652697?start=0&tstart=0

    for android:

    • Trusting all certificates using HttpClient over HTTPS
    • Accepting a certificate for HTTPs on Android

    second encrypt your data.

    any encryption algorithm or rsa encryption will do the trick.

    passing data using GET/POST should not be sent in plain text like: ?user=myuser&pass=mypass. instead use something like ?h28JduDak30fT1pfgmSnShNms762023lflsfdj2h4J. then on your server you simply have to decrypt it using a salt only your phone and the server knows.

    example code for iphone:

    NSString *encrypteddata =[NSString stringWithFormat:@"key=enryptedstring"];
    NSData *data = [encrypteddata dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
    NSString *datalen = [NSString stringWithFormat:@"%d", [data length]];
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    [request setURL:[NSURL URLWithString:@"https://yourserver:443/loginscript"]]; //:443 very importantz
    [request setHTTPMethod:@"POST"];
    [request setValue:datalen forHTTPHeaderField:@"Content-Length"];
    [request setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"];
    [request setHTTPBody:data];
    

    similar idea for android

    then on your server you can decrypt $_POST[‘key’] and do your login logic (or others)

    here’s more resource that will help you:

    • iPhone + sending data from iPhone to server as XML format
    • iPhone: HTTPS client cert authentication

    note:
    for android you shoud take a look at the HTTPComponents

    read more

    • http://www.javamex.com/tutorials/cryptography/rsa_encryption.shtml
    • http://www.edumobile.org/iphone/iphone-programming-tutorials/how-to-receive-data-from-the-server-in-iphone/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say i have an app on BB, Android, iPhone and Windows Mobile. So
I have a mobile Flex project which I am deploying to iPhone/iPod and Android.
i have done implementing mobile app on android,webos,blackberry,iphone. now i integrate project with .net
we have an app which is available for ipad, iphone, android as well as
We have developed a mobile app development toolkit which currently allows graphical designing of
I have a .Net Compact app running on Windows Mobile, and I want to
I am just brainstorming here. Let's say I have 2 mobile devices, iPhone, Android,
I have a web app, that also has an iPhone and Android app using
I'm writing an internal API for mobile device like iPhone or Android. I want
I wrote a phonegap / jQuery mobile app which runs fun in the iphone

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.