.
This commit is contained in:
parent
2895690914
commit
74f4b92b40
@ -6,6 +6,7 @@ os.loadAPI("brulijam/lib/aes.lua")
|
||||
|
||||
function createKeyfile()
|
||||
basic.clearDisplay()
|
||||
print("[Networking]")
|
||||
write("Please enter shared secret for networking: ")
|
||||
local pwHash = hash.digestStr(read("*") .. "salty salt")
|
||||
basic.writeToFile("brulijam/files/networking-key.txt", pwHash)
|
||||
|
@ -12,6 +12,7 @@ local function createPwHash()
|
||||
local inputConfirmed = false
|
||||
while not inputConfirmed do
|
||||
basic.clearDisplay()
|
||||
print("[Systemlock]")
|
||||
write("Create a new password: ")
|
||||
local input = read("*")
|
||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||
@ -45,6 +46,7 @@ end
|
||||
|
||||
local function inputPrompt()
|
||||
basic.clearDisplay()
|
||||
print("[Systemlock]")
|
||||
write("Enter Password: ")
|
||||
inputHash = hash.digestStr(read("*") .. os.getComputerID())
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user