started to implements the encryption process