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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:14:52+00:00 2026-05-23T15:14:52+00:00

I am looking to expand beyond this question: Obfuscating POST variables between Javascript &

  • 0

I am looking to expand beyond this question:
Obfuscating POST variables between Javascript & PHP

Where I came up with this solution : http://pastebin.com/YuAAZTLi

It work’s 95% of the time but the 5% I can’t really deal with. It’s hard to really base it on the time of two different servers. And sending the rot with the variables is just too easy to crack.

I need something that changed each and every time hopefully, because I dont want the HTTP POST requests just to be duplicated. What encyrption methods exist interchangeably between javascript and PHP that allow for md5 type encryption. Where

4500 looks something like Dusfh7sfSFJf78dfns8 and 4501 something like JF7Fhene7fdHfdshf6d ..nothing alike even though they are 1 digit off.

External Librarys are permitted but please make sure you link both a php and javascript counterpart.

  • 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-23T15:14:52+00:00Added an answer on May 23, 2026 at 3:14 pm

    It’s somewhat specific to the case of handling user login, but I proposed a protocol in this answer, and the asker ran with it and coded up an HTTP-sniffer-resistant PHP-to-JavaScript login form implementation.

    The essentials of the scheme:

    • Generate a random nonce value; this helps prevent replay attacks.
    • Send that nonce value and the password salt to the browser along
      with the rest of the login form.

      • You are storing passwords in salted
        and hashed form, right?
    • When the user enters a password, have the script on the form compute
      and send back hash(hash(password, salt), nonce) instead.
    • When the server receives the form submission, have it compute hash(storedSaltedPassword, nonce) and verify that it equals the submitted
      value.

      • Retain the nonce value at
        the server; don’t trust the client to
        echo it back to you, or your replay
        protection is gone.

    The weakness of this scheme is that
    the password hashes in the database
    are in some sense password-equivalent;
    while it’s likely infeasible to
    extract the original password used to
    produce those hashes, knowledge of the
    stored hash is sufficient to
    impersonate the user on your site.

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

Sidebar

Related Questions

I'm looking to expand my ruby knowledge beyond scripting, test code and file parsers
I'm a .net developer by trade but I'm looking to expand to PHP. I
Looking for feedback on : http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools
I am looking to prevent the symbol & from being replaced by & within
This is question for those who work in .Net and are curious enough to
I have a bit of reporting services know how but I'm looking to expand
This is a bit of a daft question, but out of curiousity would it
i was looking for macro which can expand like the following: FILL_BUFF(4) should be
I was looking for a way to include an expand all and collapse all.
I'm looking for a nice template engine or short piece of code to expand

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.