Post.jar is just an utility to upload files to Solr.
Solr uses Extract handler so you need to provide as url. e.g.
java -Durl=http://localhost:8983/solr/update/extract?literal.id=1 -Dtype=application/pdf -jar post.jar 1.pdf
For encrpted files check link
For Password Protected Files check link