[BangPypers] Favorite tips/techniques

Anand B Pillai anandpillai at letterboxes.org
Tue Sep 10 11:58:49 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 10 September 2013 03:07 PM, Me at Bibhas wrote:
> This thread is awesome. Keep them coming. :)
> 
> I've also been using random string generator Shabda posted for a
> long time. Handy.
> 
> On Tuesday 10 September 2013 12:48 PM, Lakshman Prasad wrote:
>> My first random password (until it is replaced with SHA, MD5,
>> bCrypt, whatever):
>> 
>>> str(random.random())[2:]
>> '742557965797'

Also,

>>> import uuid uuid.uuid4().bytes.encode('base64')[:12]
'XH4yYJA7SxSd'


uuid1..3 are not cryptographically strong as they are linked to the
machine but uuid4 generates a random, cryptographically secure uuid.

>> 
>> 
>> 
Regards,

- --Anand

-
--------------------------------------------------------------------------------------
Software Architect/Consultant
anandpillai at letterboxes.org

Please note my updated email address <anandpillai at letterboxes.org>.
Kindly update your address books.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSLu1ZAAoJEMTxYeOp9eaoJcYIAMxqHSNKm1rD4oDj9Y5sSEGw
mPuIelLcJGjB/qx2i6+SMB6dMQbofFV3k3YPlkwibDvkcQABbDl2Uxxo5BIVWXHB
ntH6ecQXGGw+YKOEoeBTq0s/Sv9rAsUtudO1q9/ylnKYpDgfG9sNjCwmhY9uB9iM
63mjsAoHOaJlNi6aQiBX+ceKqO38F9N13o/z63IKETWmc7efEthKWTG1HVRAhzXX
ICUaAiBvHFj0s2cOyZXmkIWkjwMPlbLyFLu7pyFeUMx5hb5SVoZkbCJF/lu943OM
nXTxQWz0N/zT6VMZVPHTTl98vXOb9esXqJD8+CeivhhgYKagR2xaXHcxbEKvE84=
=T5RJ
-----END PGP SIGNATURE-----


More information about the BangPypers mailing list