Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import random
- oddPasswords = ['12345', 'I have a secret password!', '1hi5 15 4 53CR31 P455W0RD', 'HAHAHA']
- passwordFile = open('C:\My Stuff\SecretPasswordFile.txt')
- secretPassword = passwordFile.read()
- print('Enter your password.')
- typedPassword = input()
- if typedPassword == secretPassword:
- print('Access granted')
- for w in oddPasswords:
- if w == typedPassword:
- print('BTW:')
- break
- if typedPassword == '12345':
- print('That password is one that an idiot puts on their luggage.')
- if typedPassword == 'I have a secret password!':
- print('Yes you do!')
- if typedPassword == '1hi5 15 4 53CR31 P455W0RD':
- print('Don\'t use machine generated passwords.')
- if typedPassword == 'HAHAHA':
- print('Passwords are know laughing matter')
- else:
- if typedPassword == '12345':
- print('How simple do you think my password is?!')
- if typedPassword == 'HAHAHA':
- print('You won\'t be laughing long.')
- print('Access Denied')
- print('Hacker!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement