Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. A bit of a weird longshot, but does anyone have any resources on reducing the viable search space of inputs to a polynomial rolling hash where the multiplier is known, and the modulus is just over a 4-byte word?

A bit of a weird longshot, but does anyone have any resources on reducing the viable search space of inputs to a polynomial rolling hash where the multiplier is known, and the modulus is just over a 4-byte word?

Scheduled Pinned Locked Moved Uncategorized
3 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrl314@peoplemaking.gamesM This user is from outside of this forum
    mrl314@peoplemaking.gamesM This user is from outside of this forum
    mrl314@peoplemaking.games
    wrote last edited by
    #1

    A bit of a weird longshot, but does anyone have any resources on reducing the viable search space of inputs to a polynomial rolling hash where the multiplier is known, and the modulus is just over a 4-byte word?

    I’ve given a couple of thoughts to cracking this but I keep hitting hard dead-ends to my knowledge.

    Also I must state this isn’t for any actual security breaching, (you shouldn’t be using this kind of hash for anything remotely secure), this is mostly a pet project with a minor application in reverse engineering a few hashed strings in an older game with no reference in the code to the original strings

    mrl314@peoplemaking.gamesM 1 Reply Last reply
    1
    0
    • mrl314@peoplemaking.gamesM mrl314@peoplemaking.games

      A bit of a weird longshot, but does anyone have any resources on reducing the viable search space of inputs to a polynomial rolling hash where the multiplier is known, and the modulus is just over a 4-byte word?

      I’ve given a couple of thoughts to cracking this but I keep hitting hard dead-ends to my knowledge.

      Also I must state this isn’t for any actual security breaching, (you shouldn’t be using this kind of hash for anything remotely secure), this is mostly a pet project with a minor application in reverse engineering a few hashed strings in an older game with no reference in the code to the original strings

      mrl314@peoplemaking.gamesM This user is from outside of this forum
      mrl314@peoplemaking.gamesM This user is from outside of this forum
      mrl314@peoplemaking.games
      wrote last edited by
      #2

      For those more curious, the rolling part of the hash is:

      h_i = s_i + h_i-1 * 31
      over an int32

      My current approach was to try to find a lattice basis for
      KNOWN_HASH = sum(0<=k<n, s_i * 31^(n-1 - k)) mod 2^32 where n = length of string s
      and then run some brutes over that search space since it’ll likely be significantly smaller than just regular bruting

      However I’m both very interested in the math, and I don’t want to chug my computer on the problem more than I need to

      clarfonthey@toot.catC 1 Reply Last reply
      0
      • mrl314@peoplemaking.gamesM mrl314@peoplemaking.games

        For those more curious, the rolling part of the hash is:

        h_i = s_i + h_i-1 * 31
        over an int32

        My current approach was to try to find a lattice basis for
        KNOWN_HASH = sum(0<=k<n, s_i * 31^(n-1 - k)) mod 2^32 where n = length of string s
        and then run some brutes over that search space since it’ll likely be significantly smaller than just regular bruting

        However I’m both very interested in the math, and I don’t want to chug my computer on the problem more than I need to

        clarfonthey@toot.catC This user is from outside of this forum
        clarfonthey@toot.catC This user is from outside of this forum
        clarfonthey@toot.cat
        wrote last edited by
        #3

        @MrL314 I think you're kinda stuck since this seems to just be a standard discrete logarithm problem

        that said even with a pretty meagre GPU you could probably just brute-force the entire space in a few minutes

        1 Reply Last reply
        0
        • R relay@relay.infosec.exchange shared this topic
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups