I need a command line program that is able to remove ALL types of basic protection from word and excel documents. Also an option to brute force the longer encryption types. Should be compatible with .doc and .docx formats. Code should also be neat and commented well.
Note I am after source code, not software already available.