-
Notifications
You must be signed in to change notification settings - Fork 0
Wiki
Lucas Varela Correa edited this page Jun 16, 2024
·
6 revisions
Encode text with a very strong encode
(All functions)
- create_dictionary_of_keys: no arguments
-
encode: text ->
list[str]
; dictionary_of_keys ->dict[str][int]
-
decode: text ->
list[str]
; dictionary_of_keys ->dict[str][int]
text = ['hi all', 'no hi all', 'lion in a dragon', 'every one dancing right now']
import EUBTA
symbols = create_symbols(text)
dictionary_of_keys = EUBTA.create_dictionary_of_keys(symbols)
encode_text = EUBTA.encode(text=text, dictionary_of_keys=dictionary_of_keys)
decode_text = EUBTA.decode(text=encode_text, dictionary_of_keys=dictionary_of_keys)
print(f'Dictionary of keys: {dictionary_of_keys}')
print(f'Encode text: {encode_text}')
print(f'Decode text: {decode_text}')
pip install EUBTA