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 8585825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:09:45+00:00 2026-06-11T22:09:45+00:00

I have a REST API which clients connect over SSL (self signed cert 2048bit)

  • 0

I have a REST API which clients connect over SSL (self signed cert 2048bit)

I was thinking of implementing the following security

  1. The client requests a RSA public key from the server
  2. Encrypts the username / password
  3. Adds these to the header of EVERY REST call allowing the server to be stateless

The application involves users adding credit cards (the numbers themselves are encrypted) and purchasing products so security is critical

We also have very limited time from a iphone client point of view so I was hoping if the above would be suitable?

  • 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-11T22:09:47+00:00Added an answer on June 11, 2026 at 10:09 pm

    Usually, when it comes to security, one doesn’t want to reinvent the wheel. It’s way better to use state-of-the-art technologies, so you’ll benefits from others’ (likely more skilled than you) work.

    If you have a RESTful API on SSL, I don’t think you have written your own custom TCP protocol. Likely you’ll use HTTP, so since it’s on SSL, you are on HTTPS.

    When using HTTPS, your browser makes sure that the request is signed and encrypted so that only the other end (the service) can authenticate the client and decrypt the message. So there is no need to encrypt data and using custom headers. A simple cookie-based session is enough so you don’t send users’ passwords in every request.

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

Sidebar

Related Questions

I have an ASP.NET MVC4 website implementing a REST API, which I'm consuming from
We have a REST API which clients routinely POST and PUT data to. When
I have a scenario in which I have REST API which manages a Resource
I have a REST api which dumps some json data (user info, etc). Now
I have a REST API using Django Tastypie. Given the following code The models
We have a REST API where clients can supply parameters representing values defined on
I have a REST API which accepts XML in HTTP Posts. When I send
I have successfully created a PHP REST API which resides on my server. I
I have built a REST API backend whith Spring MVC and secured with basic
I have a REST api with Gzip compression enabled, it's developed using the ASP.net

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.