Created
March 16, 2016 14:54
-
-
Save krishnachaitanya7/a8d38f07abdc78329317 to your computer and use it in GitHub Desktop.
This script will help you create strong passwords which is required these days when used to fill sign-up forms, Maybe useful in signing-up for university admissions, or your own password to access raspberry pi, applications are wherever there is a need of strong password
This file contains 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
'''This script will help you create strong passwords which is required these days when used to fill sign-up forms''' | |
import hashlib | |
import pyperclip | |
import sys | |
def find_pass(secret_string): | |
s = hashlib.md5(secret_string).hexdigest()[0:10] | |
for i, c in enumerate(s): | |
if not c.isdigit(): | |
break | |
final_string=s[:i] + s[i:].capitalize() | |
return final_string | |
if sys.argv[1]=='Raspberry': | |
print "Password Copied to clipboard" | |
#Down string should contain your secret string which you remeber and also in the end the number signifies how much long password you need | |
pyperclip.copy(find_pass("My Secret String")) | |
#print find_pass("My Secret String") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment