initial import
This commit is contained in:
20
generate-cpe.py
Executable file
20
generate-cpe.py
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Generate customer session password
|
||||
# @raycast.mode silent
|
||||
# @raycast.packageName Developer Utilities
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon 💻
|
||||
|
||||
import subprocess
|
||||
from xkcdpass import xkcd_password as xp
|
||||
wordfile = xp.locate_wordfile()
|
||||
|
||||
wordlist7 = xp.generate_wordlist( wordfile = wordfile, min_length = 5, max_length = 9 )
|
||||
password = xp.generate_xkcdpassword( wordlist7, numwords = 5, delimiter = '', case = 'capitalize' )
|
||||
subprocess.run( [ "/usr/bin/pbcopy" ], input = password.encode( "utf-8" ) )
|
||||
print( password )
|
Reference in New Issue
Block a user