functions.py
def extract(message, key):
    """
    Extract the secret of the message

    :param message: Message with the hidden secret
    :param key: Key used to encrypt the message
    :return:
    """
    binary_secret = []
    for c in message:
        if c in charset_occidental:
            binary_secret.append("0")
        elif c in charset_homograph:
            binary_secret.append("1")
        elif c == END_CHARACTER:
            break

    # Bits to bytes
    bit_string = "".join(binary_secret)
    # Transform the bit sequence to bytes
    bytes_secret = bitstring_to_bytes(bit_string)
    # Decrypt the binary
    decrypted = aes_decrypt(bytes_secret, password_hasher(key))
    # Uncompress
    uncompress = zlib.decompress(decrypted)
    final_result = uncompress.decode('utf-8')
    return final_result

    Extract the secret of the message

    :param message: Message with the hidden secret
    :param key: Key used to encrypt the message
    :return:
    
Extract the secret of the message
Extract the secret of the message
def extract(message, key):
    binary_secret = []
    for c in message:
        if c in charset_occidental:
            binary_secret.append("0")
        elif c in charset_homograph:
            binary_secret.append("1")
        elif c == END_CHARACTER:
            break
    bit_string = "".join(binary_secret)
    bytes_secret = bitstring_to_bytes(bit_string)
    decrypted = aes_decrypt(bytes_secret, password_hasher(key))
    uncompress = zlib.decompress(decrypted)
    final_result = uncompress.decode('utf-8')
    return final_result
def extract ( message , key ) : binary_secret = [ ] for c in message : if c in charset_occidental : binary_secret . append ( "0" ) elif c in charset_homograph : binary_secret . append ( "1" ) elif c == END_CHARACTER : break bit_string = "" . join ( binary_secret ) bytes_secret = bitstring_to_bytes ( bit_string ) decrypted = aes_decrypt ( bytes_secret , password_hasher ( key ) ) uncompress = zlib . decompress ( decrypted ) final_result = uncompress . decode ( 'utf-8' ) return final_result
Extract the secret of the message
Extract the secret of the message
"""
    Extract the secret of the message

    :param message: Message with the hidden secret
    :param key: Key used to encrypt the message
    :return:
    """ # Bits to bytes # Transform the bit sequence to bytes # Decrypt the binary # Uncompress
None
message
Message with the hidden secret
Message with the hidden secret
key
Key used to encrypt the message
Key used to encrypt the message