title: How to encrypt and decrypt all files in a directory with python 3?
body: <pre><code>from Crypto.Cipher import AES
  import base64
  import os
  from os import walk
  
  f = [ ]
  path = os.getcwd()
  print (path)
  global dirnames
  global filenames
  for (dirpath, dirnames, filenames) in walk(path):
      print (dirnames)
      print (filenames)
  </code></pre>