-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpasswordLocker.py
More file actions
31 lines (24 loc) · 784 Bytes
/
passwordLocker.py
File metadata and controls
31 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#not safe to use ,just for try
#save this file in C:\Python34 folder
#save the file passwordLocker.bat in C:Windows folder
"""
#passwordLocker.bat
@py.exe C:Python34\passwordLocker.py %*
@pause
"""
'''for executing it
press windows+r then type passwordLocker <name whose password you need>
e.g. type "passwordLocker email" without quotation mark'''
PASSWORDS={'email':'dajbdjbwb',
'facebook':'svcajvjbk',
'instagram':'cbjkasbci'}
import sys,pyperclip
if len(sys.argv)<2:
print('Usage: passwordLocker.py [account]-copy account password')
sys.exit()
account=sys.argv[1]
if account in PASSWORDS:
pyperclip.copy(PASSWORDS[account])
print('Password for '+account +'copied to clipboard')
else:
print('There is no account named '+account)