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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:44:53+00:00 2026-05-16T21:44:53+00:00

I am trying to make a change at the auth.models.py file to force the

  • 0

I am trying to make a change at the auth.models.py file to force the password hashing function (get_hexdigest()) to not use the salt when passing the sha1. So the change would be:

auth.models.py line 33

before:

return sha_constructor(salt+raw_password)

after:

return sha_constructor(raw_password)

However, when I make the change and reset the server, it is not recognized. The old way of encrypting is mantained, and nothing is different.

Do anyone knows why the changes are not loaded by django?

Thanks in advance.

  • 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-16T21:44:53+00:00Added an answer on May 16, 2026 at 9:44 pm

    First of all, it’s not wise to change an internal Django function like that.

    Second of all, there are a number of possible reasons this could be the case.

    If you installed Django to your system as a normal Python package, you can’t simply make a source change & it be recognized, unless your Django install is all source & done via symlink. You’d have to rebuild & install your modified version.

    Django’s sha_constructor() is merely a convenience interface to sha builders via the hashlib or sha modules (these are Python modules). So figure out which one is being used on your server & go take a look at either hashlib.sha1 or sha.new to see how those methods work.

    Lastly, stop and reevaluate what you are doing. Do not modify Django. Instead, write your own method that performs hashing as you want it to be performed and make whatever app/project changes you need to make to use your custom hashing. Modifying Django’s internal hashing is only going to cause you some headache down the road when you want to upgrade Django.

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

Sidebar

Related Questions

I'm trying to make a javascript function to change the value of a parameter
I am trying to make a color change on a canvas in java to
I’m trying to make a small change on a CSS for Spiceworks . This
I am trying to make a numerical value, say 5000, quickly change to another
trying to make a page which will recursively call a function until a limit
I'm trying to make the change here: http://fluxbox-wiki.org/index.php?title=Howto_Make_dblclick_titlebar_maximize I am using the current git
I'm trying to make a change to an old appengine application, but now after
I'm trying to make a change event trigger for several objects in the DOM.
I am trying to make a removeAll() function, which will remove all elements of
I'm trying to make this button change background when you click it and this

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.