Exemplo n.º 1
0
def check_right():
    path = config.get_registry_file()
    hash_info = get_hash_md5(get_computer_info())

    if not files.compare_file_content(path, hash_info):
        raise ValueError("You haven't access")
Exemplo n.º 2
0
 def __init__(self):
     key_path = config.get_registry_file()
     self.key = files.read_from_file(key_path)
     self.nonce_path = config.get_certificate_path()