This commit is contained in:
Julian Brammer 2024-06-08 22:16:41 +02:00
parent 5252961fd7
commit b0c5cf2692
2 changed files with 11 additions and 6 deletions

View File

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

View File

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