python,

PyPDF error 'PyCryptodome is required for AES algorithm'

Mar 05, 2023 · 1 min read · Post a comment

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptodome is required for AES algorithm because of the pycryptodome dependency.

Prerequisites

  • sudo privileges
  • Python installed
  • Pip installed

Solution

Depending on your python version you need to install pycryptodome package through pip.

pip install pycryptodome

or:

pip3 install pycryptodome

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.