added -c for encryption