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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:02:46+00:00 2026-05-16T07:02:46+00:00

I need the username/password to be scrambled at the client-side before sending it over

  • 0

I need the username/password to be scrambled at the client-side before sending it over via HTTP GET/POST. And the server will decode it with Tcl, before the checks against database.

Currently I’m thinking about using JavaScript for the client-side. Java Applet will also do.

Is there any way, that I can easily achieve it, using Simple XOR or any other methods? (Examples would be much appreciated)

I’ve found the few samples in C/Python/.NET/Java… But not in JavaScript and Tcl.

SSL is not an option to use, sadly.

  • 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-16T07:02:47+00:00Added an answer on May 16, 2026 at 7:02 am

    If ssl is not an option, then I suggest the following scheme, which many sites use instead of SSL:

    1. On the client side, combine the user name and password, then calculate a hash from it (MD5 is a popular choice).
    2. Send the user’s name and hash over to the server
    3. On the server side, retrieve the password for that user from the database.
    4. From the user name and password, calculate the hash and compare it with the client’s hash. If the two match, then the passwords match.
    5. For added security, add a little random text to the user+password mix. This random text, AKA the “salt”, must be known on both the client and server sides.

    Here is a suggestion on how to calculate the hash using MD5:

    package require md5
    
    proc calculateHash {user password salt} {
        return md5:md5 -hex "$user:$salt:$password"
    }
    

    How to use it:

    set user "johnny"
    set password "begood2mama"
    set salt "myDog_is_meaner_than_yourDog"
    
    set hash [calculateHash $user $password $salt]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a script which will post username and password onto a
Do we need to set permission to access the server with username password authentication
I have a client, which communicates to a TCP server. I store a username/password
I need to pass username and password which is at the server to my
I need to store payment gateway processor username/password credentials on a production web server,
Using C#, I need a class called User that has a username, password, active
I am connected to an OpenVPN server. For connecting I need 2 files (username/passowrd
string format is always like this FirstName=ABC;LastName=XZY;Username=User1;Password=1234. I need the only UserName value (which
Using Your Ruby Gem(s) You will need to add /home/username/ruby/gems to the include path.
I need to store username and password in an app.config. I want to encrypt

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.