This commit is contained in:
Julian Brammer 2024-06-08 20:44:29 +02:00
parent 7a56ac45df
commit f51946ac78

View File

@ -8,6 +8,13 @@ local function setConfig()
basic.writeToFile("/brulijam/config/systemlock.config", textutils.serialize(config))
end
local function createPwHash()
write("Create a new password : ")
local input = read("*")
pwHash = hash.digestStr(input .. os.getComputerID())
return pwHash
end
local function getConfig()
if not fs.exists "/brulijam/config/systemlock.config" then
config["locked"] = true
@ -21,12 +28,6 @@ local function getConfig()
return config
end
local function createPwHash()
write("Create a new password : ")
local input = read("*")
pwHash = hash.digestStr(input .. os.getComputerID())
return pwHash
end
local function inputTimeout()
sleep(10)