This commit is contained in:
Julian Brammer 2024-06-08 20:56:39 +02:00
parent 0f42fc1a6e
commit 32a4b39c04

View File

@ -9,9 +9,15 @@ local function setConfig()
end end
local function createPwHash() local function createPwHash()
write("Create a new password : ") local inputConfirmed = false
local input = read("*") while not inputConfirmed do
pwHash = hash.digestStr(input .. os.getComputerID()) write("Create a new password: ")
local input = read("*")
pwHash = hash.digestStr(input .. os.getComputerID())
write("Confirm new password: ")
local inputConfirmed = pwHash == hash.digestStr(read("*") .. os.getComputerID())
end
return pwHash return pwHash
end end