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

Computer Wide Encryption / Decryption

Started by NathanAdhitya, 11 October 2017 - 08:08 AM
NathanAdhitya #1
Posted 11 October 2017 - 10:08 AM
Okay, so, I have been fiddling a lot with my way of encrypting *files* so server owners can't just grab it :P/>
So, Here's what I came up with:

https://pastebin.com/asNzBFr9

Just download it, and put it in a file, you can do startup, you can do anything else.

So far, it seems to be working, I have no trouble with it yet, but if you find one, or you would like to make the security stronger, let me know.

The encryption file whitelists its own file, rom, and disks from being encrypted and decrypted (you can modify it if you want)

You have all rights to modify the code to your needs…


So, currently, there may be a couple of bugs, but there's a couple of requirements to get it up and working..
- Key / Password should be no longer than…. 100 chars? Or well, you can if you wanted to, but I'm not responsible for any performance issues.
- Key / Password may only contain a-z, 0-9, A-Z, and symbols on your keyboard. or tl;dr for experienced users: max string.byte for that char must be under 128. (0-127)
- I have not made a migration system to migrate from old stuff yet.

Feel free to help me test it and enhance its security :P/>
Edited on 11 October 2017 - 08:09 AM
NathanAdhitya #2
Posted 11 October 2017 - 02:00 PM
Ehm, so ifound out that, it can't handle things like readLine, read, so i suppose i might have to rewrite the whole system, but for now, you all can analyse it, for other usages, like rednet, modems, and other data transfers.