Skip to content

Commit a3196e6

Browse files
committed
chore: pre-commit changes
1 parent b24b46b commit a3196e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ciscoconfparse2/ciscoconfparse2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,9 @@ def encrypt_type_9(self, pwd: str):
41204120
salt_chars.append(random.SystemRandom().choice(self.cisco_b64chars))
41214121
salt = "".join(salt_chars)
41224122
# Create the hash
4123-
_hash = hashlib.scrypt(pwd.encode(), salt=salt.encode(), n=2**14, r=1, p=1, dklen=32)
4123+
_hash = hashlib.scrypt(
4124+
pwd.encode(), salt=salt.encode(), n=2**14, r=1, p=1, dklen=32
4125+
)
41244126
# Convert the hash from Standard Base64 to Cisco Base64
41254127
hash_c64 = base64.b64encode(_hash).decode().translate(self.b64table)[:-1]
41264128
# Print the hash in the Cisco IOS CLI format

0 commit comments

Comments
 (0)