Nothy, on 05 July 2016 - 10:45 PM, said:
- ComputerCraft | Programmable Computers for Minecraft
- → rdmGAMER's Content
rdmGAMER's Content
There have been 14 items by rdmGAMER (Search limited from 29-March 23)
#255629 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 06 July 2016 - 12:57 PM in Operating Systems
#255468 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 04 July 2016 - 01:17 PM in Operating Systems
#255039 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 08:13 PM in Operating Systems
#255033 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 08:00 PM in Operating Systems
Lemmmy, on 28 June 2016 - 07:49 PM, said:
erik0004, on 28 June 2016 - 07:47 PM, said:
don't bother trying to implement an sha3 variant in CC, just find an sha256 implementation somewhere on this forums or on the internet
what you would so when creating an account is save the hashed password in a file, like
sha256(password)
then when you log in, you check if sha256(input) is equal to what is saved in the file, like
if sha256(input) == passwordFile.readAll() then
obviously your code should be cleaner and not stupid but that's how you'd implement it
and how do I hash a password?
#255021 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 07:47 PM in Operating Systems
#255018 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 07:40 PM in Operating Systems
#255006 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 07:05 PM in Operating Systems
#255003 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 06:56 PM in Operating Systems
Mumbai, on 28 June 2016 - 06:52 PM, said:
[1] -- Would it not be better to instead have a one time user setup? This would be better to prevent any malicious users from going to the file browser and messing with your stuff
[2] -- yep its windows style...yay....
[3] -- in /.opt/logon the username and password are unencrypted.
[4] -- also in /.opt/logon there seems to be a backdoor login called "guest" ?
[1] Comming in the next update
[2]
[3] EDIT: Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords
[4] This should be so, but I can remove it.
#254999 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 06:43 PM in Operating Systems
#254997 OS '16 - The 2016 programmed OS. [Alpha 2.0]
Posted by rdmGAMER on 28 June 2016 - 06:30 PM in Operating Systems
-clickable Icons
- dragable Icons
- clickable Start Menu
- custom Icons (run nPaintPro with this args: ".sys/icons/xxx.nfp". To edit the icons, nPaintpro: ".sys/icons/icon1.nfp", FileBrowser: ".sys/icons/icon2.nfp and ccYouTube: ".sys/icons/icon3.nfp")
Login:
- up to 5 custom user accounts
Config (For the desktop)
and more!...
NitrogenFingers: nPaintPro
BigSHinyToys: FileBrowser
remiX: ccYouTube
Alpha 2.0:
-Passwords are now hashable
-The account file was moved
and more...
Alpha 1.02:
Bugs were fixed
Alpha 1.01:
Bugs were fixed
Alpha 1.0:
Release
Download:
Version Alpha 2.0 :
Installer: pastebin get nk4WwCP7 install
pastebin run nk4WwCP7
Zip: Link
Version Alpha 1.02 :
Installer: pastebin get kf0TkVCR install
pastebin run kf0TkVCR
Zip: Link
You have to wait until the installer says (text from the code): "OS'16 is succesfully installed. Rebooting.." It's hanging at the download of the images, so so just wait until the installer is finished!
#254859 What am I making wrong?
Posted by rdmGAMER on 26 June 2016 - 02:38 PM in Ask a Pro
os.loadAPI(".sys/API/kernal") local login = kernal.getTable(".opt/logon/.uacc") local usr1 = string.sub(login[1], string.find(login[1], ":")+2) local pass1 = string.sub(login[2], string.find(login[2], ":")+2) local usr2 = string.sub(login[3], string.find(login[3], ":")+2) local pass2 = string.sub(login[4], string.find(login[4], ":")+2) local usr3 = string.sub(login[5], string.find(login[5], ":")+2) local pass3 = string.sub(login[6], string.find(login[6], ":")+2) function login() term.setBackgroundColor(8) term.clear() term.setTextColor(1) paintutils.drawLine(1,1,51,1,colors.blue) paintutils.drawLine(1,19,51,19,colors.blue) term.setCursorPos(1,19) write("© 2016 erik0004") term.setCursorPos(1,1) print("OS'16 Login") term.setBackgroundColor(8) term.setCursorPos(5,9) print("Password : ") term.setCursorPos(5,7) write("Username : ") input = read() if input == usr1 or input == usr2 or input == usr3 then term.setCursorPos(5,9) write("Password : ") input = read("*") if input == pass1 or input == pass2 or input == pass3 then term.setCursorPos(7,12) textutils.slowPrint("Welcome, please wait.") sleep(0.5) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.1) term.setCursorPos(5,12) print([[\]]) sleep(0.1) term.setCursorPos(5,12) print([[|]]) sleep(0.1) term.setCursorPos(5,12) print([[/]]) sleep(0.1) term.setCursorPos(5,12) print([[-]]) sleep(0.2) term.setCursorPos(5,12) print([[ ]]) sleep(0.5) shell.run(".sys/GUI/desktop") else term.setCursorPos(5,12) print("Incorrect Password!") sleep(3) shell.run(".sys/logon/usr_login") end else term.setCursorPos(5,12) print("Incorrect Username!") sleep(3) shell.run(".sys/logon/usr_login") end end function register() term.setBackgroundColor(8) term.clear() term.setTextColor(1) paintutils.drawLine(1,1,51,1,colors.blue) paintutils.drawLine(1,19,51,19,colors.blue) term.setCursorPos(1,19) write("© 2016 erik0004") term.setCursorPos(1,1) print("OS'16 Register") end function drawLogin() term.setBackgroundColor(8) term.clear() term.setTextColor(1) paintutils.drawLine(1,1,51,1,colors.blue) paintutils.drawLine(1,19,51,19,colors.blue) term.setCursorPos(1,19) write("© 2016 erik0004") term.setCursorPos(1,1) print("OS'16 Login") term.setBackgroundColor(8) term.setCursorPos(6,6) print("Login") term.setCursorPos(6,8) print("Register") term.setTextColor(colors.red) term.setCursorPos(4,6) print("X") term.setCursorPos(4,8) print("X") end drawLogin() while true do local event, X, Y, button = os.pullEvent("mouse_click") if X == 4 and Y == 6 and button == 1 then login() break end if X == 4 and Y == 8 and button == 1 then register() break end end
(Its long so I put it in a spoiler)
#254853 What am I making wrong?
Posted by rdmGAMER on 26 June 2016 - 02:07 PM in Ask a Pro
Here is one part of the event codes :
while true do local event, X, Y = os.pullEvent("mouse_click") if X==4 and Y==6 then login() break elseif X==4 and Y==8 then register() break end end
- ComputerCraft | Programmable Computers for Minecraft
- → rdmGAMER's Content