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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:19:06+00:00 2026-06-07T05:19:06+00:00

So when building a webapp and storing passwords, both security and performance are important

  • 0

So when building a webapp and storing passwords, both security and performance are important things to keep in mind. Having seen evidence that even salted SHA1 passwords can be easily cracked due to the increasing speed of GPUs, I was wondering what are the best practices of storing passwords.

I thought that in order to add more security to storing passwords, you could add a secret to the salt. So for instance, the python code for this could be:

import hashlib
import hmac

secret = 'XYZ'
h = hmac.new('salt' + secret, 'password')
  • Is this a common thing to do?
  • What are the drawbacks of this?
  • What are the best practices in this field?

P.S. I didn’t post this in the security forum because I want a webapp developer’s perspective.

  • 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-07T05:19:08+00:00Added an answer on June 7, 2026 at 5:19 am

    Also have a look at passlib: http://pypi.python.org/pypi/passlib/

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

Sidebar

Related Questions

I am building a webapp that cannot be put into the app store (security
I'm building a WebApp in jsf 2.0 and it's about storing information and displaying
Background: I am building a webapp that makes use of JQuery and the Facebook
I'm building a webapp that uses jboss-seam with jsf, facelets and rich faces, running
I'm building a webapp for Android smartphones that runs with the OS internet browser.
I am building a webapp that has the following characteristics: It only has a
I'm building a webapp with role based access control using Acegi (Spring) security. So
I'm building a WebApp that needs to send a text and a filename through
I'm building a webapp that allows users to create, edit, and save documents. The
I'm building a webapp that contains an IFrame in design mode so my user's

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.