Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 8fb8684

Browse files
authored
Merge pull request #278 from anut123/master
secure your password
2 parents e08f365 + a5c284e commit 8fb8684

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Basic-Scripts/secure your password.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
sym = {
2+
'a' : '!!',
3+
'b' : '@',
4+
'c' : '#',
5+
'd' : '$',
6+
'e' : '^',
7+
'f' : '}',
8+
'g' : ']',
9+
'h' : ')',
10+
'i' : '*',
11+
'j' : '=',
12+
'k' : '+',
13+
'l' : '-',
14+
'm' : '_',
15+
'n' : '>',
16+
'o' : '<',
17+
'p' : '.',
18+
'q' : '%',
19+
'r' : '&',
20+
's' : '(',
21+
't' : '{',
22+
'u' : '[',
23+
'x' : '?',
24+
'y' : ',',
25+
'z' : '|',
26+
}
27+
inp = 'alphabet'
28+
password = ''
29+
30+
for i in inp:
31+
for key, val in sym.items():
32+
if i in key:
33+
password = password + val
34+
print("Name you entered : ", inp)
35+
print("Password : ", password)

0 commit comments

Comments
 (0)