title: reader.decrypt(word) NotImplementedError: only algorithm code 1 and 2 are supported
body: <p>I am using PyPDF2 library to decrypt the PDF file. Instead of directly providing the password, I am using wordlist. </p>
  
  <pre><code>import PyPDF2
  
  ENCRYPTED_FILE_PATH = 'pdf_protected.pdf'
  
  pdffile = open('dictionary.txt')
  w = pdffile.read()
  wordlist = w.split('\n')
  
  with open(ENCRYPTED_FILE_PATH, mode='rb') as f:        
      reader = PyPDF2.PdfFileReader(f)
      if reader.isEncrypted:
              for word in wordlist:
                  reader.decrypt(word)
                  print(f"Number of page: {reader.getNumPages()}")
  </code></pre>
  
  <p>And I'm not understanding how to solve this error
  <a href="https://i.stack.imgur.com/ANiOT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANiOT.png" alt="enter image description here"></a></p>
  
  <p>Thank you :)</p>