Script to process a large database

I have a large database of files. Thing is, they’re all password-encrypted, so DTPO can’t work its text-magic.

Would it be possible to write a script to disable the password (if the password was the same for all the files)? Would appreciate any help you might have in putting this together.

What kind of files do you want to decrypt? PDF documents?