finished going through the encryption algorithm