2019-04-25 03:01:06 +00:00
|
|
|
#! /usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i python3 -p python3
|
2018-09-14 19:07:05 +00:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
import secrets
|
|
|
|
a = "".join(sys.argv[1:])
|
|
|
|
d = "pq"
|
2018-12-09 23:54:13 +00:00
|
|
|
if "b" in a:
|
|
|
|
d = d + "b"
|
2018-09-14 19:07:05 +00:00
|
|
|
if "u" in a:
|
2018-12-09 23:54:13 +00:00
|
|
|
d = d + d.upper()
|
2018-09-14 19:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
l = 16 + secrets.randbelow(16)
|
|
|
|
|
|
|
|
print(''.join([secrets.choice(d) for _ in range(l)]))
|