added encrypt process