def __init__(self, kodi_helper):
"""
The Constructor checks for already existing crypto Keys.
If they exist it will load the existing keys
"""
self.kodi_helper = kodi_helper
try:
xbmcvfs.mkdir(path=self.kodi_helper.msl_data_path)
except OSError:
pass
if self.file_exists(self.kodi_helper.msl_data_path, 'msl_data.json'):
self.init_msl_data()
elif self.file_exists(self.kodi_helper.msl_data_path, 'rsa_key.bin'):
self.init_rsa_keys()
else:
self.init_generate_rsa_keys()
评论列表
文章目录