added option to encrypt a file