Encrypted remote peripherals

Started by ShreksHellraiser, Jun 23, 2022, 10:29 PM

Previous topic - Next topic

ShreksHellraiser

Ever wanted to use peripherals over an encrypted rednet network? Now you can @ github. To install simply run
wget run https://raw.githubusercontent.com/MasonGulu/cc-remote-peripheral/master/installer.lua on both your client and server, selecting the appropriate option. There's more information on the github, but you can use this as a drop in replacement for peripheral like so
peripheral = require("rperipheral")
local monitor = peripheral.wrap("password@address:monitor_0")

You can alternatively use it in place of peripheral.wrap like so
local monitor = require "rperipheral" "password@address:monitor_0"

There's a lookup table feature to allow you to use a shorter name for peripherals (also making it easier to adapt existing programs to use a remote peripheral). And any calls to this peripheral class that don't match the [password@]{id|hostname}:peripheral format is automatically passed to the original peripheral class.

I do really suggest reading the README.md on the github page for more detailed and up to date information.