Rewrote the encrypt_str methods