4 downloads 180 views Jul 2, 2024
profile

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:

  1. Generate keypair files with vericode.generateKeypair
  2. Copy the .key.pub file (NOT the standard .key file!!!) to each client that needs to receive signed code
  3. 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
  4. Call vericode.send to send a Lua script to a client computer
  5. 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/102
Git Repository
comments
You can login with Discord to leave comments and reply to others!
pfp TKB Studios 3 months ago

Interesting! Might give this one out a try ;)