





"""simple docstring"""






from typing import Literal

lowerCAmelCase_      =				'''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''

def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE				)		->							Any:






       """simple docstring"""




       _UpperCAmelCase			     =  LETTERS if mode == 'decrypt' else key
       _UpperCAmelCase			     =  key if mode == 'decrypt' else LETTERS
       _UpperCAmelCase			     =  ''
       # loop through each symbol in the message
       for symbol in message:
              if symbol.upper() in chars_a:
                     # encrypt/decrypt the symbol
                     _UpperCAmelCase			     =  chars_a.find(symbol.upper()				)
                     if symbol.isupper():
                            translated += chars_b[sym_index].upper()
                     else:
                            translated += chars_b[sym_index].lower()
              else:
                     # symbol is not in LETTERS, just add it
                     translated += symbol
       return translated

def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE				)		->							Dict:






       """simple docstring"""




       return translate_message(__UpperCamelCase,__UpperCamelCase,'encrypt'				)

def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE				)		->							str:






       """simple docstring"""




       return translate_message(__UpperCamelCase,__UpperCamelCase,'decrypt'				)

def    __lowerCamelCase     (							)		->							Union[str, Any]:






       """simple docstring"""




       _UpperCAmelCase			     =  'Hello World'
       _UpperCAmelCase			     =  'QWERTYUIOPASDFGHJKLZXCVBNM'
       _UpperCAmelCase			     =  'decrypt'  # set to 'encrypt' or 'decrypt'

       if mode == "encrypt":
              _UpperCAmelCase			     =  encrypt_message(__UpperCamelCase,__UpperCamelCase				)
       elif mode == "decrypt":
              _UpperCAmelCase			     =  decrypt_message(__UpperCamelCase,__UpperCamelCase				)
       print(F"""Using the key {key}, the {mode}ed message is: {translated}"""				)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()









"""simple docstring"""






from ..utils import DummyObject, requires_backends
class 	_lowerCAmelCase    (      metaclass=__snake_case       ):
							__lowerCAmelCase					:    Optional[Any]     =  ['''tensorflow_text''']

							def __init__( self       :    Optional[int] ,		*a       :    int ,		**a       :    str    )   ->    str:

									"""simple docstring"""
									requires_backends(self ,		['''tensorflow_text''']    )