Handle encrypted files