• gm_yahm - Yet Another Hashing Module - Linux & Windows
    19 replies, posted
  • Avatar of q3k
  • [release][b]What is it?[/b] It's yet another hashing functions module for Garry's Mod. I wrote it because I needed MD5 on a Linux server yet couldn't find any other modules who did that. Someone might find the result useful, I suppose. [b]Usage[/b] [lua]require("yahm") yahm.MD5("somestring") yahm.SHA1("somestring")[/lua] [b]Download[/b] [url=http://q3k.org/gm_yahm_linux.dll]Linux binary[/url] (it's huge because I didn't know how to strip the CryptoPP symbols) [url=http://q3k.org/gm_yahm.dll]Windows binary[/url] [url=http://pastie.org/1823499]Source[/url] [/release]
  • Avatar of Buggzie
  • Before you get all these people complaining about the .dll being a virus, I'd put it in a zip or rar file. and I think theres many other modules that do this, but a more simple one like this is great. Thanks!
  • Avatar of q3k
  • [QUOTE=Buggzie;29369492]Before you get all these people complaining about the .dll being a virus, I'd put it in a zip or rar file.[/QUOTE] If there really are people that stupid, then it's their problem. I don't care. [QUOTE=Buggzie;29369492]and I think theres many other modules that do this[/QUOTE] Yes, there are, hence the name of the module. :v:
  • Avatar of Buggzie
  • [QUOTE=zzaacckk;29386853]Now where can I find a unhash module..[/QUOTE] From what I know, you can't unhash MD5 or SHA1
  • Avatar of Buggzie
  • [QUOTE=zzaacckk;29388769]It was supposed to be a joke.[/QUOTE] Riiiiiight
  • Avatar of ColdFusion
  • [QUOTE=TGiFallen;29402335]There are websites where you can unhash both of them[/QUOTE] Looking it up in rainbow tables aint unhashing. a smart man would add double encryption (Base64, Rot13 Something like that) to stop the rainbow tables from being usefull.
  • Avatar of zzaacckk
  • I have always wondered if an MD5 is 35 numbers/letters long, how is there always a hash for something over 35 characters? If you make a hash that returns something 2 letters long you have 676 different possibilities, if someone put a string in that was 3 characters then there would be 17,576 different possibilities. If we go to a higher level that "property" or "fact" wouldn't change so one hash can have multiple strings like if you hash a 33 character string?
  • Avatar of TheJjokerR
  • [QUOTE=zzaacckk;29415537]I have always wondered if an MD5 is 35 numbers/letters long, how is there always a hash for something over 35 characters? If you make a hash that returns something 2 letters long you have 676 different possibilities, if someone put a string in that was 3 characters then there would be 17,576 different possibilities. If we go to a higher level that "property" or "fact" wouldn't change so one hash can have multiple strings like if you hash a 33 character string?[/QUOTE] Google it, you'll find the workings on the encryption algorithm. You'll find that not every text has to be have a unique hash though, some experts managed to create 3 different PDF files all with the same md5 hash.. (Can also be found on google I think)
  • Avatar of agmike
  • yet another time i must post this [url]http://cube3d.de/uploads/Main/sha1.txt[/url] md5 is worthless and at least sha-1 takes a fuck lot more work to collide, and this is a pure lua implementation that adds 1 second to start up when loaded to build a cache table but then all sha-1 hashing is damn near instant and you can AddCSLuaFile this to clients so they don't need to have a binary installed.
  • Avatar of TGiFallen
  • [QUOTE=agmike;29460855]yet another time i must post this [url]http://cube3d.de/uploads/Main/sha1.txt[/url] md5 is worthless and at least sha-1 takes a fuck lot more work to collide, and this is a pure lua implementation that adds 1 second to start up when loaded to build a cache table but then all sha-1 hashing is damn near instant and you can AddCSLuaFile this to clients so they don't need to have a binary installed.[/QUOTE] I posted this in Niggles awhile ago.
  • Avatar of Aide
  • [QUOTE=Python1320;23738924]Linux version of gm_crypto: [url]http://g.iriz.org/~srcds/modules[/url] (Uses hashlib++) [editline]07:30PM[/editline] + Added crypto.sha512(string)[/QUOTE] Related and useful for all Linux servers.
  • Avatar of Crap-Head
  • Sorry about the bump, but is there any chance that this module could be updated for GMod 13? Thank you in advance!
  • Avatar of Teddi
  • [QUOTE=Wizard of Ass;38177124]Doubt the author will update it, use [url=https://fox.gy/fNTsZ6M2gR.dll]mine[/url][/QUOTE] Could you get around to making that new thread? Just handy to keep up to date instead of diving through other threads trying to find any news about it.