From 500c9fd382e77b6820a360e71dd84b64f3a8ef4b Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Mon, 5 Oct 2015 17:28:12 +0200 Subject: [PATCH] Update sID.lua --- src/apps/system/sID.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/system/sID.lua b/src/apps/system/sID.lua index 08d7252..f3ce999 100644 --- a/src/apps/system/sID.lua +++ b/src/apps/system/sID.lua @@ -20,7 +20,7 @@ end local function header() clear() local w, h = term.getSize() - paintutils.drawLine(1,1,w,1, colors.blue) + paintutils.drawLine(1,1,w,1, colors.red) term.setTextColor(colors.white) term.setCursorPos(1,1) write(" "..sPhone.user) @@ -65,7 +65,7 @@ local function login() f.write(name) f.close() f = fs.open("/.sPhone/config/.sIDpw", "w") - f.write(base64.encode(pw)) + f.write(sha256.sha256(pw)) f.close() sPhone.name = name end @@ -109,7 +109,7 @@ local function register() f.write(name) f.close() local pwf = fs.open("/.sPhone/config/.sIDPw", "w") - pwf.write(base64.encode(pw)) + pwf.write(sha256.sha256(pw)) pwf.close() sPhone.name = name end