Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commands/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def add_passwd() -> str:

encrypted = fernet.encrypt(passwd.encode())
print(f"Encrypted password: {encrypted}")


os.makedirs("./secret", exist_ok=True)
conn = sqlite3.connect("./secret/passwords.db")
cursor = conn.cursor()

Expand Down
1 change: 1 addition & 0 deletions japanese/commands/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def パスワード追加() -> str:
暗号文 = 暗号器.encrypt(パスワード.encode())
print(f"暗号化されたパスワード : {暗号文}")

os.makedirs("./secret", exist_ok=True)
with open(f"./secret/{サイト名}.txt", "a", encoding="utf-8") as ファイル:
ファイル.write(f"{暗号文.decode()}\n")

Expand Down