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

Rednet port locking

Started by Galactica4, 12 July 2013 - 11:10 PM
Galactica4 #1
Posted 13 July 2013 - 01:10 AM
Hi
I had an idea because I am developing an unreleased Rednet client and I thought about some ideas for security:
1.
Rednet port locking
The ability to lock a Rednet port with a password eg something like this:
Making the lock:
local modem = peripheral.wrap("left")
modem.open(3)–Open channel 3
Modem.portLock(3) – if you type this, the computer will prompt you to set a password
Connecting to the port: (on another computer)
Modem.open(3) – here the computer will say "this port has a password, please enter password:"

This could be really useful on servers and could be added into the Rednet API :D/>/>

Sorry I'm on my ipad so I could not use the code thingy, thanks!
Zudo #2
Posted 13 July 2013 - 01:15 AM
SpoilerYou can still use the code higlighting on iPad, you need to type [.code] and [/.code] without the periods.

This is never going to happen, I can tell you that now. A change to rednet again would not go down to well! And you can edit the BIOS to do this.
Galactica4 #3
Posted 13 July 2013 - 01:42 AM
Ahhh bios?

Can you tell what and how?
Zudo #4
Posted 13 July 2013 - 01:50 AM
Ahhh bios?

Can you tell what and how?

I know it is possible, but I don't actually know how :P/>
Dlcruz129 #5
Posted 13 July 2013 - 12:35 PM
Re-write some existing rednet functions. The bios won't help you here.
Sebra #6
Posted 14 July 2013 - 03:37 AM
Some efforts have been made to add vulnerability to RedNet. I would not wait such protection to be added. And this kind of protection is weird.
Galactica4 #7
Posted 14 July 2013 - 03:55 AM
Some efforts have been made to add vulnerability to RedNet. I would not wait such protection to be added. And this kind of protection is weird.

How is it weird?
It makes perfect sense for servers and even when you are just building something by yourself it is a cool feature to show off
Galactica4 #8
Posted 14 July 2013 - 04:02 AM
I plan to add a new element called redSky that is an extension to every aspect of rednet i can, also addressing this feature
BTW i was going to call it BlueNet but that's not sticking with the RED aspect of mine craft logic is it?

Off topic: Why the hell is red-power's power called blutricity? It's REDpower!
SadKingBilly #9
Posted 14 July 2013 - 09:11 AM
The reason this will never (never) happen is because, in SMP, a single person could easily lockout every single RedNet channel. And even if one person didn't do so maliciously, twenty people on a single server locking-out random channels would be a nightmare. "Hmm, I want to use channel 342… Oh, it's password-protected, eh? Does anybody know who locked this channel?"
M4sh3dP0t4t03 #10
Posted 14 July 2013 - 09:31 AM
You could just write new API that encrypts every message that you send.
Zudo #11
Posted 14 July 2013 - 02:03 PM
Some efforts have been made to add vulnerability to RedNet. I would not wait such protection to be added. And this kind of protection is weird.

How is it weird?
It makes perfect sense for servers and even when you are just building something by yourself it is a cool feature to show off

You say the program will prompt you to enter the password, this could screw up lots of programs.
Lyqyd #12
Posted 14 July 2013 - 02:04 PM
I'm gonna go ahead and lock this.