.
This commit is contained in:
parent
0f42fc1a6e
commit
32a4b39c04
@ -9,9 +9,15 @@ local function setConfig()
|
||||
end
|
||||
|
||||
local function createPwHash()
|
||||
write("Create a new password : ")
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user