mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Improve encrypt/decrypt algorithms
This commit is contained in:
@@ -89,9 +89,7 @@ function init()
|
||||
|
||||
-- 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.set('uuid', g_crypt.getMachineUUID())
|
||||
g_configs.save()
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user