.
This commit is contained in:
parent
5252961fd7
commit
b0c5cf2692
@ -6,8 +6,8 @@ os.loadAPI("brulijam/lib/aes.lua")
|
|||||||
function createKeyfile()
|
function createKeyfile()
|
||||||
basic.clearDisplay()
|
basic.clearDisplay()
|
||||||
print("[Networking]")
|
print("[Networking]")
|
||||||
print("Please enter shared secret for networking.")
|
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.")
|
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: ")
|
write("Input: ")
|
||||||
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)
|
||||||
|
@ -2,12 +2,17 @@
|
|||||||
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
||||||
local labelPrefix = "SPHEAL"
|
local labelPrefix = "SPHEAL"
|
||||||
|
|
||||||
|
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("[Booting]")
|
print("[Booting]")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if not (fs.exists("brulijam/config/system.txt")) then
|
if not (fs.exists("brulijam/config/system.txt")) then
|
||||||
local systemConfig = {}
|
local systemConfig = {}
|
||||||
systemConfig["labelPrefix"] = labelPrefix
|
systemConfig["labelPrefix"] = labelPrefix
|
||||||
|
Loading…
Reference in New Issue
Block a user