.
This commit is contained in:
parent
7a56ac45df
commit
f51946ac78
@ -8,6 +8,13 @@ local function setConfig()
|
|||||||
basic.writeToFile("/brulijam/config/systemlock.config", textutils.serialize(config))
|
basic.writeToFile("/brulijam/config/systemlock.config", textutils.serialize(config))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function createPwHash()
|
||||||
|
write("Create a new password : ")
|
||||||
|
local input = read("*")
|
||||||
|
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||||
|
return pwHash
|
||||||
|
end
|
||||||
|
|
||||||
local function getConfig()
|
local function getConfig()
|
||||||
if not fs.exists "/brulijam/config/systemlock.config" then
|
if not fs.exists "/brulijam/config/systemlock.config" then
|
||||||
config["locked"] = true
|
config["locked"] = true
|
||||||
@ -21,12 +28,6 @@ local function getConfig()
|
|||||||
return config
|
return config
|
||||||
end
|
end
|
||||||
|
|
||||||
local function createPwHash()
|
|
||||||
write("Create a new password : ")
|
|
||||||
local input = read("*")
|
|
||||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
|
||||||
return pwHash
|
|
||||||
end
|
|
||||||
|
|
||||||
local function inputTimeout()
|
local function inputTimeout()
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user