Last active
April 6, 2016 08:24
-
-
Save henkjanverkerk/7bf0d70dbc33dddc7a24e44264b42566 to your computer and use it in GitHub Desktop.
Simple password generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def main(): | |
length = int(raw_input('How long should your password be?\n')) | |
print('Here's the password I generated: ' + ''.join(random.sample('QWERTYUIOPASDFGHJKLZXCVBNM1234567890abcdefghijklmnopqrstuvwxyz1234567890!@$()_', length))) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment