Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
randpass.py - a random password generator in python
SUBMITTED BY:
Guest
DATE:
Oct. 9, 2014, 4:34 a.m.
FORMAT:
Python
SIZE:
743 Bytes
Raw
Download
Tweet
HITS:
1056
Go to comments
Report
#!/usr/bin/env python
#
randpass.py
- <3
#Just a simple random password generator in Python
#"Random" isn't so random, actually..
#
http://scaredkid.org/
#this makes robotic 16 character passwords
#I can't keep coding without BTC: 1JmS81r4n11WmfUUKJfKUfp7Weym6p7iqN
import
random
print
'
randpass.py
- random fucking passwords
\n
http://scaredkid.org/
\n
'
charblock
=
"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*"
character_data_length
=
16
password
=
""
for
i
in
range
(
character_data_length
):
next_index
=
random
.
randrange
(
len
(
charblock
))
password
=
password
+
charblock
[
next_index
]
print
'Your 16 character password is: '
+
(
password
)
#EOF
Please enable JavaScript to view the
comments powered by Disqus.