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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:42:59+00:00 2026-05-24T20:42:59+00:00

I am looking for protocol/algorithm that will allow me to use a shared secret

  • 0

I am looking for protocol/algorithm that will allow me to use a shared secret between my App & a HTML page.

The shared secret is designed to ensure only people who have the app can access the webpage.

My Problem: I do not know what algorithm(my methodology to validate a valid access to the HTML page) & what encryption protocol I should use for this.

People have suggested to me that I use HMAC SHAXXX or DES or AES, I am unsure which I should use – do you have any suggestions?

My algorithm is like so:

  • I create a shared secret that the App & the HTML page know of(lets call it “MySecret”). To ensure that that shared secret is always unique I will add the current date & minute to the end of the secret then hash it using XXX algorithm/protocol(HMAC/AES/DES). So the unencrypted secret will be “MySecret08/17/2011-11-11” & lets say the hash of that is “xyz”
  • I then add this hash to the url CGI: http://mysite.com/comp.py?sharedSecret=xyz
  • The comp.py script then uses the same shared secret & date combination, hashes it, then checks that the resulting hash is the same as the CGI variable sharedSecret(“xyz”). If it is then I know a valid user is accessing the webpage.

Can you think of a better methodology to ensure on valid people can access my webpage(the webpage allows the user to enter a competition)?

I think I am on the correct track using a shared secret but my methodology for validating the secret seems flawed especially if the hash algorithm doesn’t produce the same result for the same in put all the time.

  • 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-24T20:43:00+00:00Added an answer on May 24, 2026 at 8:43 pm

    especially if the hash algorithm doesn’t produce the same result for the same in put all the time.

    Then the hash is broken. Why wouldn’t it?

    You want HMAC in the simple case. You are “signing” your request using the shared secret, and the signature is verified by the server. Note that the HMAC should include more data to prevent replay attacks – in fact it should include all query parameters (in a specified order), along with a serial number to prevent the replay of the same message by an eavesdropper. If all you are verifying is the shared secret, anyone overhearing the message can continue to use this shared secret until it expires. By including a serial number, or a short validity range, you can configure the server to flag that.

    Note that this is still imperfect. TLS supports client and server side certificate support – why not use that?

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

Sidebar

Related Questions

Looking for a Linux application (or Firefox extension) that will allow me to scrape
I'm looking for a protocol to secure a connection between a mobile device and
I'm doing a grad-school software engineering project and I'm looking for the protocol that
Looking at the OpenID protocol, it appears that the relying party needs to send
We are looking at using Google's Protocol Buffers to handle serialization between a c++
I'm looking for some input on witch file transfer protocol to use over a
I'm looking for a simple clock synchronization protocol that would be easy to implement
I'm looking for a simple protocol to control remote processes from one managing application.
While looking for an SFTP client in C# SSH File Transfer Protocol (SFTP), I've
I was just looking through some information about Google's protocol buffers data interchange format.

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.