1. Post #1
    q3k
    Gold Member
    q3k's Avatar
    October 2009
    921 Posts
    [release]What is it?

    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.

    Usage

    require("yahm")
    yahm.MD5("somestring")
    yahm.SHA1("somestring")

    Download

    Linux binary (it's huge because I didn't know how to strip the CryptoPP symbols)
    Windows binary
    Source
    [/release]
    Reply With Quote Edit / Delete Reply Poland Show Events Lua King Lua King x 6Useful Useful x 1 (list)

  2. Post #2
    Buggzie's Avatar
    December 2009
    965 Posts
    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!
    Reply With Quote Edit / Delete Reply Australia Show Events Dumb Dumb x 8Disagree Disagree x 1 (list)

  3. Post #3
    q3k
    Gold Member
    q3k's Avatar
    October 2009
    921 Posts
    Before you get all these people complaining about the .dll being a virus, I'd put it in a zip or rar file.
    If there really are people that stupid, then it's their problem. I don't care.
    and I think theres many other modules that do this
    Yes, there are, hence the name of the module.

  4. Post #4
    zzaacckk's Avatar
    June 2009
    2,140 Posts
    Now where can I find a unhash module..
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 12Optimistic Optimistic x 2Dumb Dumb x 1 (list)

  5. Post #5
    Buggzie's Avatar
    December 2009
    965 Posts
    Now where can I find a unhash module..
    From what I know, you can't unhash MD5 or SHA1
    Reply With Quote Edit / Delete Reply Australia Show Events Dumb Dumb x 10Zing Zing x 4Funny Funny x 3Agree Agree x 1 (list)

  6. Post #6
    zzaacckk's Avatar
    June 2009
    2,140 Posts
    It was supposed to be a joke.
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 4Dumb Dumb x 3 (list)

  7. Post #7
    Buggzie's Avatar
    December 2009
    965 Posts
    It was supposed to be a joke.
    Riiiiiight
    Reply With Quote Edit / Delete Reply Australia Show Events Dumb Dumb x 17Funny Funny x 1 (list)

  8. Post #8
    TGiFallen's Avatar
    January 2010
    1,440 Posts
    There are websites where you can unhash both of them
    Reply With Quote Edit / Delete Reply Canada Show Events Dumb Dumb x 4Agree Agree x 1Disagree Disagree x 1 (list)

  9. Post #9
    ColdFusion's Avatar
    December 2009
    2,227 Posts
    There are websites where you can unhash both of them
    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.
    Reply With Quote Edit / Delete Reply Netherlands Show Events Dumb Dumb x 4Agree Agree x 2 (list)

  10. Post #10
    zzaacckk's Avatar
    June 2009
    2,140 Posts
    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?

  11. Post #11
    Gold Member
    thejjokerr's Avatar
    December 2007
    2,103 Posts
    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?
    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)

  12. Post #12
    agmike's Avatar
    September 2010
    120 Posts
    yet another time i must post this

    http://cube3d.de/uploads/Main/sha1.txt

    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.
    Reply With Quote Edit / Delete Reply United States Show Events Useful Useful x 3 (list)

  13. Post #13
    TGiFallen's Avatar
    January 2010
    1,440 Posts
    yet another time i must post this

    http://cube3d.de/uploads/Main/sha1.txt

    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.
    I posted this in Niggles awhile ago.

  14. Post #14
    King of the Oil Refinery
    Tobba's Avatar
    December 2008
    6,218 Posts
    Can we have more hash functions?
    Like MD5, SHA2, Tiger, etc
    Reply With Quote Edit / Delete Reply Sweden Show Events Agree Agree x 1 (list)

  15. Post #15
    We Are No Idiots
    Aide's Avatar
    March 2010
    4,726 Posts
    Linux version of gm_crypto: http://g.iriz.org/~srcds/modules (Uses hashlib++)

    Edited:

    + Added crypto.sha512(string)
    Related and useful for all Linux servers.

  16. Post #16
    Wyciokazz's Avatar
    October 2008
    16 Posts
    Please reupload!
    Reply With Quote Edit / Delete Reply Windows XP Lithuania Show Events Late Late x 1Dumb Dumb x 1 (list)

  17. Post #17
    Gold Member
    Crap-Head's Avatar
    May 2010
    409 Posts
    Sorry about the bump, but is there any chance that this module could be updated for GMod 13?

    Thank you in advance!

  18. Post #18
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    Doubt the author will update it, use mine

  19. Post #19
    Doubt the author will update it, use mine

    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.

  20. Post #20
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    Done.