This script was originally written to decrypt email bank statements sent by HDFC. If you are getting unsolicited emails with encrypted pdf files like I did and there is no way to unsubscribe them, use this script to unlock them. In general this script could be used to crack any pdf with numerical passwords with a few tweaks. Make sure you have the imported modules.