We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ad770 commit d8c466eCopy full SHA for d8c466e
pass.py
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env python
2
+
3
+import random
4
5
+print("\n***********[Strong Random Password Generator]***********\n")
6
7
+try:
8
9
+ A = int(input('\033[1;32mEnter your Password Length (10 to 74) = \033[1;m'))
10
+ s = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
11
+ passlen = (A)
12
+ p = "".join(random.sample(s, passlen))
13
14
+except (SyntaxError, ValueError): ## Python3X
15
16
+ print("Empty Input or Wrong Input Value")
17
18
+else:
19
20
+ print('\n\033[1;35mYOUR SECURE PASSWORD = %s \033[1;m\n' %p)
0 commit comments