.
This commit is contained in:
parent
5252961fd7
commit
b0c5cf2692
@ -6,8 +6,8 @@ os.loadAPI("brulijam/lib/aes.lua")
|
||||
function createKeyfile()
|
||||
basic.clearDisplay()
|
||||
print("[Networking]")
|
||||
print("Please enter shared secret for networking.")
|
||||
print("This will be used to communicate with other Devices and should be the same on different Turtles and Computers.")
|
||||
print("Please enter a shared secret for networking.")
|
||||
print("This will be used to communicate with other Devices and should be the same on different Turtles and Computers that you want to be connected.")
|
||||
write("Input: ")
|
||||
local pwHash = hash.digestStr(read("*") .. "salty salt")
|
||||
basic.writeToFile("brulijam/files/networking-key.txt", pwHash)
|
||||
|
@ -2,12 +2,17 @@
|
||||
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
||||
local labelPrefix = "SPHEAL"
|
||||
|
||||
|
||||
---------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print("[Booting]")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if not (fs.exists("brulijam/config/system.txt")) then
|
||||
local systemConfig = {}
|
||||
systemConfig["labelPrefix"] = labelPrefix
|
||||
|
Loading…
Reference in New Issue
Block a user