-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
algorithm question #9
Comments
yeah that's possible, it should also be possible to use the generalized version where are there other algorithms you had in mind? |
for sure, a generic alternative that can cover other variations (sdbm, djb2) would be great. Regarding other algorithms, I usually dig around save-game checksums for save-game editing, and there are a bunch of simple checksums that could be added too. There's the "add" family, generally referenced as Add: while (len--)
add += (uint8_t) *data++; WAdd: len = len/2;
while (len--) {
wadd += (uint16_t) *data;
data += 2;
} DWAdd: len = len/4;
while (len--) {
dwadd += (uint32_t) *data;
data += 4;
} Note: some variations use signed int8, int16, int32 instead of unsigned, or read values as big-endian, and some other variations are all substractions instead of sums, like I understand if you don't have time right now, but it would be great to have such nice reversing tool when working with save-game data. 😄 |
some good news about Add, WAdd and DWAdd: i think you should be able to get them already as haven't thought about the sign stuff, so i will definitely implement that when i get around to that. |
thanks for the feedback! |
are there any plans to support other algorithms, for example, some like the SDBM hash? http://www.cse.yorku.ca/~oz/hash.html#sdbm
The text was updated successfully, but these errors were encountered: