first encryption steps