[BangPypers] Favorite tips/techniques

Shabda Raaj shabda at agiliq.com
Tue Sep 10 12:10:26 CEST 2013


Another tip:

Its common to write decorators which clober the docstring and other meta
data. If you use functools.wrap this metadata is preserved.

http://docs.python.org/2/library/functools.html
https://github.com/django/django/blob/master/django/contrib/auth/decorators.py#L19



On Tue, Sep 10, 2013 at 12:48 PM, Lakshman Prasad <scorpion032 at gmail.com>wrote:

> My first random password (until it is replaced with SHA, MD5, bCrypt,
> whatever):
>
> > str(random.random())[2:]
> '742557965797'
>
>
>
> On Tue, Sep 10, 2013 at 11:34 AM, Vinayak Hegde <vinayakh at gmail.com>wrote:
>
>> On Tue, Sep 10, 2013 at 10:45 AM, Noufal Ibrahim <noufal at nibrahim.net.in
>> >wrote:
>>
>> > Anand Chitipothu <anandology at gmail.com> writes:
>> >
>> > [...]
>> >
>> > > I use it very often. Here is my random-password script.
>> >
>> > [...]
>> >
>> > I use mkpasswd(1) :)
>> >
>>
>> What ever you use, please use py-bcrypt or something similar before you
>> store it in the database.
>>
>> Here is the site with easy usage of it -
>> http://www.mindrot.org/projects/py-bcrypt/
>>
>> Another on how to use it well and store password in db.
>> http://dustwell.com/how-to-handle-passwords-bcrypt.html
>>
>> -- Vinayak
>>
>> -- Vinayak
>> _______________________________________________
>> BangPypers mailing list
>> BangPypers at python.org
>> https://mail.python.org/mailman/listinfo/bangpypers
>>
>
>


-- 
Thanks,
Shabda

Agiliq.com - Building Amazing Apps
agiliq.com/blog/ | github.com/agiliq
US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj
Our Android Apps <https://play.google.com/store/apps/developer?id=Agiliq> | Our
iOS Apps <https://itunes.apple.com/us/artist/agiliq/id407918088>


More information about the BangPypers mailing list