From ee2ff3e415c16d662f29ead3058778b01f9a8a71 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Tue, 1 Apr 2014 09:04:14 -0400 Subject: [PATCH] Re-add comment about disabling password confirmation in repository_tool.py. --- tuf/repository_tool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tuf/repository_tool.py b/tuf/repository_tool.py index e56fa2b7..27e12c6d 100755 --- a/tuf/repository_tool.py +++ b/tuf/repository_tool.py @@ -3384,6 +3384,8 @@ def import_rsa_privatekey_from_file(filepath, password=None): tuf.formats.PATH_SCHEMA.check_match(filepath) # If the caller does not provide a password argument, prompt for one. + # Password confirmation disabled here, which should ideally happen only + # when creating encrypted key files (i.e., improve usability). if password is None: message = 'Enter a password for the encrypted RSA file: ' password = _get_password(message, confirm=False) @@ -3640,6 +3642,8 @@ def import_ed25519_privatekey_from_file(filepath, password=None): tuf.formats.PATH_SCHEMA.check_match(filepath) # If the caller does not provide a password argument, prompt for one. + # Password confirmation disabled here, which should ideally happen only + # when creating encrypted key files (i.e., improve usability). if password is None: message = 'Enter a password for the encrypted ED25519 key: ' password = _get_password(message, confirm=False)