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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:44:47+00:00 2026-06-15T03:44:47+00:00

I was looking at Stanford’s JavaScript crypto library and realized I could do hashing

  • 0

I was looking at Stanford’s JavaScript crypto library and realized I could do hashing on the client.

Previously, I’ve been using PHP crypt() which is concise because with one command –
crypt() I generate both a crypt type, random salt, the hash and put these three items into a string( md5, I know it’s a bit fast but OK for now, read here ).

Looks like this:

crypt() MD5 hash example:          $1$rasmusle$rISCgZzpwk3UhDidwXvin0

However if one encrypts on the client using: Stanford’s Crypto Library, and utilizing their implementation of SHA-256, one would have the added benefit of hiding the password while it is in transit to the server.

However while hiding the password, it exposes the hash in transit which is actually used to do the sql lookup.

I could hash on both ends – client and server to solve this problem. Would this be over-kill?

What is the standard, secure way to hash passwords?

  • 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-15T03:44:49+00:00Added an answer on June 15, 2026 at 3:44 am

    Honestly? It would be best to hash your passwords on the server side. Then, make sure that your app is using HTTPS (SSL/TLS) so that attackers can’t sniff the network and retrieve plaintext passwords that are in transit. For the login page, you can force visitors to use HTTPS by using the following:

    <Location /login.php>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    </Location>
    

    Obviously, you’ll need to configure your web server for SSL before this will provide any security.

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

Sidebar

Related Questions

I've been looking at the Stanford University iphone videos on iTunes U. And saw
For quite a while I've been looking at objective c examples, watching the Stanford
Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking at the Slickgrid examples and using Google Chrome, I'm setting a breakpoint on
I've been working through the Stanford iPhone Coding course and currently hooking into the
I am using fpc package in R to perform cluster validation. I could use
Looking for simple php class routing, like this: http://fatfree.sourceforge.net/page/routing-engine Is there a ready-made solutions?
I just started using Stanford Parser but I do not understand the tags very
I was looking at lecture 2 of the stanford machine learning lecture series taught
I am trying to compile VRip in Ubuntu 10.04, using the site http://graphics.stanford.edu/software/vrip/guide/ as

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.