Tomm0017 / cache-names

Cracking Old School RuneScape cache file names

Home Page:http://discord.runestar.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cache-names Discord

View all

Some files in the Old School RuneScape cache contain a hash of their name. The only way to find out the names of these files is to reverse the hashes.

The following hash function is used:

public static int hash(String s) {
    byte[] bytes = s.toLowerCase().getBytes(Charset.forName("windows-1252"));
    int h = 0;
    for (byte b : bytes) {
        h = h * 31 + b;
    }
    return h;
}

It is equivalent to s.toLowerCase().hashCode() for ASCII-only inputs

About

Cracking Old School RuneScape cache file names

http://discord.runestar.org

License:MIT License


Languages

Language:Kotlin 100.0%