




__A								=       "ABCDEFGHIJKLMNOPQRSTUVWXYZ"







def      lowerCamelCase_						(			)	->			None:





				"""simple docstring"""


				__lowerCamelCase									=       input('Enter message: ' )
				__lowerCamelCase									=       input('Enter key [alphanumeric]: ' )
				__lowerCamelCase									=       input('Encrypt/Decrypt [e/d]: ' )

				if mode.lower().startswith('e' ):
								__lowerCamelCase									=       'encrypt'
								__lowerCamelCase									=       encrypt_message(UpperCamelCase__					,	UpperCamelCase__ )
				elif mode.lower().startswith('d' ):
								__lowerCamelCase									=       'decrypt'
								__lowerCamelCase									=       decrypt_message(UpperCamelCase__					,	UpperCamelCase__ )

				print(F"""\n{mode.title()}ed message:""" )
				print(UpperCamelCase__ )







def      lowerCamelCase_						(			UpperCamelCase__							: str					,	UpperCamelCase__							: str )	->			str:





				"""simple docstring"""


				return translate_message(UpperCamelCase__					,	UpperCamelCase__					,	'encrypt' )







def      lowerCamelCase_						(			UpperCamelCase__							: str					,	UpperCamelCase__							: str )	->			str:





				"""simple docstring"""


				return translate_message(UpperCamelCase__					,	UpperCamelCase__					,	'decrypt' )







def      lowerCamelCase_						(			UpperCamelCase__							: str					,	UpperCamelCase__							: str					,	UpperCamelCase__							: str )	->			str:





				"""simple docstring"""


				__lowerCamelCase									=       []
				__lowerCamelCase									=       0
				__lowerCamelCase									=       key.upper()

				for symbol in message:
								__lowerCamelCase									=       LETTERS.find(symbol.upper() )
								if num != -1:
												if mode == "encrypt":
																num += LETTERS.find(key[key_index] )
												elif mode == "decrypt":
																num -= LETTERS.find(key[key_index] )

												num %= len(UpperCamelCase__ )

												if symbol.isupper():
																translated.append(LETTERS[num] )
												elif symbol.islower():
																translated.append(LETTERS[num].lower() )

												key_index += 1
												if key_index == len(UpperCamelCase__ ):
																__lowerCamelCase									=       0
								else:
												translated.append(UpperCamelCase__ )
				return "".join(UpperCamelCase__ )


if __name__ == "__main__":
					main()








def      lowerCamelCase_						(			UpperCamelCase__							: str )	->			bool:





				"""simple docstring"""


				__lowerCamelCase									=       0
				for ch in input_str:
								__lowerCamelCase									=       ord(UpperCamelCase__ )
								__lowerCamelCase									=       pow(2					,	UpperCamelCase__ )

								# If we already turned on bit for current character's unicode
								if bitmap >> ch_unicode & 1 == 1:
												return False
								bitmap |= ch_bit_index_on
				return True


if __name__ == "__main__":
					import doctest

					doctest.testmod()


