mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords, now it's really harder to decrypt the password from the config file * Other minor changes
This commit is contained in:
@@ -82,6 +82,14 @@ function init()
|
||||
|
||||
g_keyboard.bindKeyDown('Ctrl+Shift+R', reloadScripts)
|
||||
|
||||
-- generate machine uuid, this is a security measure for storing passwords
|
||||
if not g_crypt.setMachineUUID(g_configs.get('uuid')) then
|
||||
local uuid = g_crypt.genUUID()
|
||||
g_crypt.setMachineUUID(uuid)
|
||||
g_configs.set('uuid', uuid)
|
||||
g_configs.save()
|
||||
end
|
||||
|
||||
connect(g_app, { onRun = startup })
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user