Add .gpg extension to password cache file

This commit is contained in:
Gergely Polonkai 2016-10-18 16:39:17 +02:00
parent d64b2d5e0b
commit 0b0728c474
1 changed files with 2 additions and 1 deletions

View File

@ -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: ")