On Mon, 2002-12-16 at 05:23, Bjørge Solli wrote:
Hi
I want to put my old loginmanager to rest and put something simple in. SimpleUserFolder sounds nice, but it seems to do the password matching itself, and since I have sha-crypted passwords, I need to match the passwords in encrypted format. Any ideas? If none, can u please tell me to *not* use SimpleUserFolder(perhaps you have an alternative as well?).
For the record; I keep my users in a database.
Thankyou!
I've been down that road... SHA should work roughly the same as MD5 below Adam
From exUserFolder/pgAuthSourceAlt/pgAuthSource.py
# Original cryptPassword function def cryptPassword(self, username, password): salt =username[:2] secret = crypt(password, salt) return secret # Alternate cryptPassword function, returns md5 hash of the password # def cryptPassword(self, username, password): # passhash = md5.new(password) # secret = passhash.hexdigest() # return secret # Alternate cryptPassword function, returns plain text of the password. # def cryptPassword(self, username, password): # return password