4 downloads 193 views 0 likes Jul 2, 2024
VeriCode 2 by JackMacWindows
Code signing uses encryption and hashes to easily verify a) that the sender of the code is trusted, and b) that the code hasn't been changed mid-transfer. VeriCode applies this concept to Lua code sent over Rednet to add a layer of security to Rednet. Just plainly receiving code from whoever sends it is dangerous, and invites the possibility of getting malware (in fact, I've made a virus that spreads through this method). Adding code signing ensures that any code received is safe and trusted.
Basic usage:
- Generate keypair files with vericode.generateKeypair
- Copy the .key.pub file (NOT the standard .key file!!!) to each client that needs to receive signed code
- Require the API & load the key (.key on server, .key.pub on clients) - on the server, make sure to store the key returned from loadKey as you'll need it to send
- Call vericode.send to send a Lua script to a client computer
- Call vericode.receive on the client to listen for code from the server (note that it returns after receiving a function, so call it in an infinite loop if you want it to always accept code)
wget run https://pinestore.cc/d/102Git Repository
comments
You can login with Discord to leave comments and reply to others!
Interesting! Might give this one out a try ;)