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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:21:48+00:00 2026-05-11T13:21:48+00:00

I have a web service that is outward-facing, however I need to generate a

  • 0

I have a web service that is outward-facing, however I need to generate a verification system to ensure that a request came from a valid client.

Let’s say the original web service is defined as follows:

[OperationContract] public void Service.RequestMethod (string clientId, int reqNumber,     string reqText) {     // do stuff with the parameters } 

I want to make sure that the request actually came from the client specified by the clientId parameter.

My current plan is to add another parameter to the method signature, giving a checksum of sorts.

[OperationContract] public void Service.RequestMethod (string clientId, int reqNumber,     string reqText, string reqChecksum) {     // verify reqChecksum, then     // do stuff with the parameters } 

I need a function that verifies that the checksum was calculated by the approved client. It should be calculated on the reqNumber and reqText parameters as well as a client-specific ‘password’ known by both client and server.

In effect, it should be:

private bool VerifyChecksum(int reqNumber, string reqText,     string clientPassword, string reqChecksum) {     // hash reqNumber, reqTxt, and clientPassword     // ensure it matches reqChecksum } 

Does anyone have any suggestions for this hashing function or the model as a whole?

It needs to be message-specific, client-specific, and hard to guess (high entropy).

  • 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. 2026-05-11T13:21:49+00:00Added an answer on May 11, 2026 at 1:21 pm

    You’re probably looking for some kind of MAC. Something like MD5 for the hash. The whole idea of MD5 is that you apply it to ‘some’ data and get a value. As long as the ‘some data’ part is not known to everyone, it’s almost impossible to reproduce the value.

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

Sidebar

Related Questions

I have a web service that I need to consume from BizTalk orchestration. I've
I have a web service that I have a rewrite on. I need to
I have a web service that receives requests from users and returns some json.
I have a web service that needs to be protected from unauthorized users. I
I have a web-service that calls a stored procedure from a MS-SQL2005 DB. My
i have a web-service that will be returning a collection of System.Drawing.Image objects. My
I have a web service that is externally facing but I would like it
I have a web service that queries data from this json file, but I
I have a web service that I would like to use from a few
Have a web service that implements REST (sort of) , Client request is made

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.