Answer the question
In order to leave comments, you need to log in
Function not working! (base64) (Cryptography) How to fix it?
Here is the function itself:
def VALIDATOR_KEY():
global FILE_NAME
with open(FILE_NAME, "r") as fn:
TRUE_KEY_DECODING_STEP_ONE = fn.read()
TRUE_KEY_DECODING_STEP_TWO = base64.b64decode(TRUE_KEY_DECODING_STEP_ONE)
INPUT_KEY = input("Введите ключ для активации программы !" + "\n")
TRUE_KEY = TRUE_KEY_DECODING_STEP_TWO.decode()
if TRUE_KEY == INPUT_KEY:
input("Программа ативирована удачно !")
else:
input("Попробуйте ещё раз !")
VALIDATOR_KEY()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question