This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PokeAcer's profile picture

[UPDATED] Cloud door!

Started by PokeAcer, 24 August 2015 - 12:07 AM
PokeAcer #1
Posted 24 August 2015 - 02:07 AM
This is a HTTP-using system.


I have created a program for cloud password storage and verification using Forgotten_Boy's CC Cloud Chest system.
My program will download the cx4 API, and will require you to insert your API key found at https://boomtree.com/cx4 .
You will need to run the program 'setup' to add your password to the db. It will hash the password into sha256 (the password is sent via HTTP, not HTTPS) before sending.

You will then need to rename the door program to startup (or make a os.run startup file), insert the key then reboot. It'll ask for the slot number, then the password, and it'll hash it into sha256. If the password hash is correct, the door will open (and wipe the variables for safety)

Download the setup program - http://pastebin.com/MDt56RdY
Download the door program - http://pastebin.com/8fyFyw3B
Forgotten_Boy #2
Posted 24 August 2015 - 08:43 PM
I've been working on connecting a Minecraft button to my real-world garage door via this, so a little extra security may be useful…
PokeAcer #3
Posted 25 August 2015 - 03:14 AM
I've been working on connecting a Minecraft button to my real-world garage door via this, so a little extra security may be useful…
If you want, I can make you one with salting built in, we should also try to make HTTPS work :P/>
Forgotten_Boy #4
Posted 25 August 2015 - 03:51 AM
Yeah HTTPS is all you really need. Does it work for you in ComputerCraft? Because mine still doesn't.
If it works for you just change all your requests to use it; cx4 should respond normally if I'm not mistaken.
ry00000 #5
Posted 25 August 2015 - 09:19 AM
Now someone MUST make a irl Skittles dispenser controlled via ComputerCraft! (No seriously, I'll give anyone who does it 1000000000 Kudos points.)
PokeAcer #6
Posted 25 August 2015 - 05:25 PM
Now someone MUST make a irl Skittles dispenser controlled via ComputerCraft! (No seriously, I'll give anyone who does it 1000000000 Kudos points.)

If Forgotten_Boy makes his thing, he'll probably help you out.

Yeah HTTPS is all you really need. Does it work for you in ComputerCraft? Because mine still doesn't.
If it works for you just change all your requests to use it; cx4 should respond normally if I'm not mistaken.
EDIT: I can't make HTTPS work either. Also, thank you for updating the API to not do this:
cx4.Get(0) used to say <data> |newline| |newline| <amount of lines> and I had to add extra code in to deal with this. Now, I can remove that :D/>
Edited on 25 August 2015 - 03:47 PM
ry00000 #7
Posted 12 October 2015 - 03:12 PM
I'm using Cx4 for my brand new M-Oyster system!