Re: use crypt algo for user passwords

2008-09-01 Thread SammyRulez
I agree, and my basic idea was to enable the use of a stronger algo than sha1, which is breakable too. Hashlib supports sha256 and sha 512. As I said in the ticket comment adding the app secret key could mitigete the danger of a brute force attack on the sql dump of the database. On 29 Ago, 20:29

Re: use crypt algo for user passwords

2008-08-29 Thread Tim Chase
> Maybe I'm wrong but this patch define DEFAULT_ALGO at "django > installation" level. I think it shoud be defined at prject level. > something like this > try: > ... DEFAULT_ALGO = settings.DEFAULT_ALGO > ... except NameError: > ... DEFAULT_ALGO = 'sha1' > > does refer to project s

Re: use crypt algo for user passwords

2008-08-29 Thread SammyRulez
Maybe I'm wrong but this patch define DEFAULT_ALGO at "django installation" level. I think it shoud be defined at prject level. something like this >>> try: ... DEFAULT_ALGO = settings.DEFAULT_ALGO ... except NameError: ... DEFAULT_ALGO = 'sha1' does refer to project settings have some s

Re: use crypt algo for user passwords

2008-08-28 Thread Tim Chase
> thanks opend ticket #8647 Attached is a patch against contrib/auth/models.py that should add an "algo" parameter to set_password so it takes an algorithm. -tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: use crypt algo for user passwords

2008-08-28 Thread SammyRulez
thanks opend ticket #8647 On 28 Ago, 16:55, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi Sam, > >  I'm tring to figure out how to use crypt algorithm for user password. > > > looking at the code (http://code.djangoproject.com/browser/django/ > > trunk/django/contrib/auth/models.py) lin 175 there

Re: use crypt algo for user passwords

2008-08-28 Thread Rajesh Dhawan
Hi Sam, I'm tring to figure out how to use crypt algorithm for user password. > looking at the code (http://code.djangoproject.com/browser/django/ > trunk/django/contrib/auth/models.py) lin 175 there is no way to use > other than sha1. You're right that algo='sha1' is hard coded in User.set_pas