From 0b0728c4743a2e7b8b7e0c6d3398e43e494f7f58 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 18 Oct 2016 16:39:17 +0200 Subject: [PATCH] Add .gpg extension to password cache file --- password_reset/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/password_reset/__init__.py b/password_reset/__init__.py index ef2b69d..f6ab3c1 100644 --- a/password_reset/__init__.py +++ b/password_reset/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf8 import getpass from gi.repository import GnomeKeyring from xdg import BaseDirectory @@ -83,7 +84,7 @@ def check_password(info, old_passwords, new_password=None): def main(args): cache_file = os.path.join(BaseDirectory.save_cache_path('password_reset'), - 'old-passwords') + 'old-passwords.gpg') old_password = getpass.getpass("Enter the password we are looking for: ") new_password = getpass.getpass("Enter the new password: ")