Skip to content

Commit 579bad6

Browse files
authored
Add files via upload
1 parent 1c96559 commit 579bad6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

generator.png

92.2 KB
Loading

generator.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import random
2+
3+
4+
lower = "abcdefghijklmnopqrstuvwxyz"
5+
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
6+
numbers = "0123456789"
7+
symbols = "!@#$%^&*()__+"
8+
9+
10+
all = lower + upper + numbers + symbols
11+
length = 16
12+
13+
14+
password = "".join(random.sample(all, length)) #join()=will join all the strings, random.sample()=will pick random values upto 'length' characters from 'all' without repeating it.
15+
16+
17+
18+
print(password)

0 commit comments

Comments
 (0)