From 96b5cf31e2f5d19f34d0dd1075014c488f6a5789 Mon Sep 17 00:00:00 2001 From: Ross Kinsey Date: Fri, 2 Apr 2021 16:42:54 -0400 Subject: [PATCH] passwordToKeySHA now hashes the password using SHA --- pysnmp/proto/secmod/rfc3414/localkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysnmp/proto/secmod/rfc3414/localkey.py b/pysnmp/proto/secmod/rfc3414/localkey.py index 61ce5ff9c..88bf5658a 100644 --- a/pysnmp/proto/secmod/rfc3414/localkey.py +++ b/pysnmp/proto/secmod/rfc3414/localkey.py @@ -68,7 +68,7 @@ def passwordToKeyMD5(passphrase, snmpEngineId): def passwordToKeySHA(passphrase, snmpEngineId): - return localizeKey(hashPassphraseMD5(passphrase), snmpEngineId, sha1) + return localizeKey(hashPassphraseSHA(passphrase), snmpEngineId, sha1) def localizeKeyMD5(passKey, snmpEngineId):