.
This commit is contained in:
parent
93d9a960b3
commit
4aecdcec3b
@ -11,7 +11,7 @@ end
|
|||||||
local function createPwHash()
|
local function createPwHash()
|
||||||
local inputConfirmed = false
|
local inputConfirmed = false
|
||||||
while not inputConfirmed do
|
while not inputConfirmed do
|
||||||
--basic.clearDisplay()
|
basic.clearDisplay()
|
||||||
write("Create a new password: ")
|
write("Create a new password: ")
|
||||||
local input = read("*")
|
local input = read("*")
|
||||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||||
@ -19,12 +19,7 @@ local function createPwHash()
|
|||||||
write("Confirm new password: ")
|
write("Confirm new password: ")
|
||||||
local input2 = read("*")
|
local input2 = read("*")
|
||||||
local input2Hash = hash.digestStr(input2 .. os.getComputerID())
|
local input2Hash = hash.digestStr(input2 .. os.getComputerID())
|
||||||
print(pwHash)
|
inputConfirmed = pwHash == input2Hash
|
||||||
print(input2Hash)
|
|
||||||
print(input)
|
|
||||||
print(input2)
|
|
||||||
inputConfirmed = pwHash == input2
|
|
||||||
print(inputConfirmed)
|
|
||||||
end
|
end
|
||||||
return pwHash
|
return pwHash
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user