Jump to content




Lua hashing algorithm.


  • You cannot reply to this topic
1 reply to this topic

#1 xXThunder607Xx

  • Members
  • 20 posts

Posted 03 May 2014 - 02:52 AM

Over the course of the last week or so, I've been working on a ComputerCraft Operating-System, and the first page is a login. Keep in mind that I am doing this on a server, so there will be multiple people storing passwords. We have a huge networking cable across the map, and I have a computer at my base that receives the passwords that people have been logging in with, and verifies that it is the correct password, and sends back a yes or no message. Anyway, what I needed, is a way to get that string of text (someone's password) and change it into a number, and totally mess it up by multiplying, adding, dividing...etc, so that if someone by change gets a hold of the password data they have no idea what that password is, and wont be able to mess up my whole system. What I really need help in, is knowing how to change the string of text (password) into a number so that I can mess it up and protect it, as I've explained above. Thanks. ;)

PS: If you have no idea what Im talking about, read this article on the hashing algorithm: http://en.wikipedia....i/Hash_function

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 03 May 2014 - 06:33 AM

Well if you were to use the forums search feature, you'd find that people have implemented hashing algorithms, here is an example. http://www.computerc...hp?/topic/8169-





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users