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