diff --git a/oletools/crypto.py b/oletools/crypto.py index ffd16ec..1e3e737 100644 --- a/oletools/crypto.py +++ b/oletools/crypto.py @@ -209,6 +209,11 @@ def _check_msoffcrypto(): raise CryptoLibNotImported() +def check_msoffcrypto(): + """Return `True` iff :py:mod:`msoffcrypto` could be imported.""" + return msoffcrypto is not None + + def decrypt(filename, passwords=None, **temp_file_args): """ Try to decrypt an encrypted file