add support for encrypted tar files

I've added a slight change to allow encrypted tar files to be used. I'm using this to handle artifacts which I'm storing in online/cloud storage services.