Start pppassword
This commit is contained in:
parent
148683f8f0
commit
b3fa4050c1
13
scripts/pppassword
Executable file
13
scripts/pppassword
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import os
|
||||
import secrets
|
||||
a = "".join(sys.argv[1:])
|
||||
d = "pq"
|
||||
if "u" in a:
|
||||
d = d + "PQ"
|
||||
|
||||
|
||||
l = 16 + secrets.randbelow(16)
|
||||
|
||||
print(''.join([secrets.choice(d) for _ in range(l)]))
|
Loading…
Reference in a new issue