mirror of
https://github.com/rjNemo/pass-gen
synced 2026-06-06 10:36:42 +00:00
10 lines
247 B
Python
10 lines
247 B
Python
import subprocess
|
|
|
|
|
|
def copy_to_clipboard(password: str) -> None:
|
|
subprocess.run("pbcopy", universal_newlines=True, input=password)
|
|
|
|
|
|
def save_to_file(file: str, password: str) -> None:
|
|
with open(file, "w") as f:
|
|
f.write(password)
|