(self, ciphertext)
return self._bin_to_str(plaintext_bin)
:param ciphertext: XorCiphertext
        :return: str
def decrypt(self, ciphertext):
        """

        :param ciphertext: XorCiphertext
        :return: str
        """
        if ciphertext.verifier != self.beta_string[:len(ciphertext.verifier)]:
            raise ValueError("XOR encryption invalid ciphertext")
        ciphertext_bin = self._all_to_bin(ciphertext.message)
        plaintext_bin = self._xor(ciphertext_bin, self.alpha)
        return self._bin_to_str(plaintext_bin)
def decrypt ( self , ciphertext ) : if ciphertext . verifier != self . beta_string [ : len ( ciphertext . verifier ) ] : raise ValueError ( "XOR encryption invalid ciphertext" ) ciphertext_bin = self . _all_to_bin ( ciphertext . message ) plaintext_bin = self . _xor ( ciphertext_bin , self . alpha ) return self . _bin_to_str ( plaintext_bin )