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 <scorpion...@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 <vinay...@gmail.com>wrote: > >> On Tue, Sep 10, 2013 at 10:45 AM, Noufal Ibrahim <nou...@nibrahim.net.in >> >wrote: >> >> > Anand Chitipothu <anandol...@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@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> _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers