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
local function createPwHash()
local inputConfirmed = false
while not inputConfirmed do
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
end