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

Hashed Computer Lock

Started by LDDestroier, 08 December 2015 - 05:02 PM
LDDestroier #1
Posted 08 December 2015 - 06:02 PM
I know a door lock is usually someone's first program, but I did one anyway. And it's hashed. And it supports multiple passwords!

Uses valithor's 19 line hashing API.


pastebin get uW0X4aKn lock

Has amusing anti-terminate.
Wojbie #2
Posted 09 December 2015 - 01:43 AM
Looking at this program i have to say few things.

Things i love:
  • The termination attempt messages
  • Fact that it can be both computer lock and door lock
  • Nice colors and looks of it
Things i don't like:
  • Hashing algorithm appears to have hash collision. That means that you are able to open this doors using a similar string. From testing i found out that all collisions have same length as original and amount of collisions decreases with longer strings. There also apears to be pattern in the letters that are colliding with each other.
In the end i rate it as Good door lock and suggest ad-least 7-8 letter passwords.

Have a nice day and may (Brute) force be with you!
valithor #3
Posted 09 December 2015 - 02:17 AM
I realized a few days after I posted that hashing api that it needed some work. It really is not secure, but it will deter those who do not really care enough to try and crack it.
MineRobber___T #4
Posted 13 December 2015 - 06:42 AM
Pretty cool! A few notes though:

- Termination attempt message is too flashy (Seizure warning much?)
- Where is the password file stored? (I want to start over with the lock) nevermind, found it
Edited on 13 December 2015 - 05:48 AM
LDDestroier #5
Posted 15 December 2015 - 08:55 PM
- Termination attempt message is too flashy (Seizure warning much?)

Well you're not supposed to terminate it…