Re: Password Generator

2006-07-12 Thread Tim
Thanks Felix. This works great. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: Password Generator

2006-07-12 Thread Scott McCracken
Felix Ingram wrote: > I've put the above on the wiki > (http://code.djangoproject.com/wiki/AdminApplication) which is off the > common pitfalls page. Felix - many thanks for the great explination. This is exactly what I was looking for. --~--~-~--~~~---~--~~ You

Re: Password Generator

2006-07-12 Thread Jyrki Pulliainen
On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > On 7/12/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > > > > On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > > salt = sha.new(str(random.random())).hexdigest()[:5] > > > > Dunno is this really a developer question, but is there r

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > > On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > salt = sha.new(str(random.random())).hexdigest()[:5] > > Dunno is this really a developer question, but is there really a point > using sha there? That one could be done without sh

Re: Password Generator

2006-07-12 Thread Jyrki Pulliainen
On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > salt = sha.new(str(random.random())).hexdigest()[:5] Dunno is this really a developer question, but is there really a point using sha there? That one could be done without sha too using random.getrandbits(bits), eg.: ('%x' % random.getrandb

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > On 7/12/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So whack the following into a script or type it into a interactive session > > import sha, random > raw_password = script though)> > algo = 'sha1' > salt = sha.new(str(random.rando

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Wed, 2006-07-12 at 03:18 +, Scott McCracken wrote: > > I also ran into this problem when trying to create new users in the > > Django admin interface. According to the Django documentation "We've > > added extra security to the s

Re: Password Generator

2006-07-11 Thread Malcolm Tredinnick
On Wed, 2006-07-12 at 03:18 +, Scott McCracken wrote: > I also ran into this problem when trying to create new users in the > Django admin interface. According to the Django documentation "We've > added extra security to the stored passwords in Django's authentication > system. Thanks to a pat

Re: Password Generator

2006-07-11 Thread Scott McCracken
I also ran into this problem when trying to create new users in the Django admin interface. According to the Django documentation "We've added extra security to the stored passwords in Django's authentication system. Thanks to a patch from GomoX, passwords are now stored with a salt and use SHA-1