Skip to content

Commit d499d27

Browse files
committed
Decrypt PKCS#8 key even if the password is empty
1 parent 0c86527 commit d499d27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Crypto/IO/PKCS8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def unwrap(p8_private_key, passphrase=None):
148148
ValueError : if decoding fails
149149
"""
150150

151-
if passphrase:
151+
if passphrase is not None:
152152
passphrase = tobytes(passphrase)
153153

154154
found = False

0 commit comments

Comments
 (0)