Posted 01 June 2013 - 06:19 PM
XenAuth
What is it?
A simple authentication system
Why?
Just a quick entry into LUA for computer craft as I expand out my ideas.
Implemented:
Very simple user and password verification system
TODO:
Add rednet support
- Need to encode data before sending over rednet
Build Authentication server
- Add checks based on username, password, and computer id
- Local access should allow for overrides, so this will need to be kept in a very secure location
- needs password encryption
Build account administration panel
- Should allow you to change passwords
- Should allow you to adjust who has permissions to your terminals
Even with all that still left to do, my initial boilerplate code should serve as a nice standalone app.
Please do read the code and change the configuration options to match your desires. Please keep in mind that this is my first ComputerCraft program, but I've got big ideas to look forward too in the future.
Here's the code:
http://pastebin.com/5bB8JEWV
You can install it with pastebin as well
>pastebin get 5bB8JEWV xenauth
Feel free to tweak it, and then rename it to startup so that it will automatically load when chunks get reloaded. I suggest keeping it on a disk until you are sure you don't want to run anything else. I may implement some breakout features as well, but for now, it's just outputs to redstone.
What is it?
A simple authentication system
Why?
Just a quick entry into LUA for computer craft as I expand out my ideas.
Implemented:
Very simple user and password verification system
TODO:
Add rednet support
- Need to encode data before sending over rednet
Build Authentication server
- Add checks based on username, password, and computer id
- Local access should allow for overrides, so this will need to be kept in a very secure location
- needs password encryption
Build account administration panel
- Should allow you to change passwords
- Should allow you to adjust who has permissions to your terminals
Even with all that still left to do, my initial boilerplate code should serve as a nice standalone app.
Please do read the code and change the configuration options to match your desires. Please keep in mind that this is my first ComputerCraft program, but I've got big ideas to look forward too in the future.
Here's the code:
http://pastebin.com/5bB8JEWV
You can install it with pastebin as well
>pastebin get 5bB8JEWV xenauth
Feel free to tweak it, and then rename it to startup so that it will automatically load when chunks get reloaded. I suggest keeping it on a disk until you are sure you don't want to run anything else. I may implement some breakout features as well, but for now, it's just outputs to redstone.