This commit is contained in:
Julian Brammer 2024-06-08 21:51:24 +02:00
parent 2895690914
commit 74f4b92b40
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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