added crypto for file encryption