sqwale
sqwale

Reputation: 575

determining hashing function

Hi I have several inputs and several outputs. I pass an ID to a third party and they hash the ID i submitted. Now i want to know what function was used so i can compare my id to the hashed verion however don't know how they generated their id from mine.

input is always bigint containg 19 integers output is alpahnumric containing 16 values which seem to always begin with an integer.

What i am asking may sound strange as its like having a mathametical equation with operands and answer and asking what function was applied. However because i have a large data set of inputs and corresponding outputs i can eliminate the functions which don't hold true for all cases.

Also if i pass the same id twice they generate the same corresponding id, which leads me to the conclusion time seeding was not used

So how do i go about writing a script to determine the function is my question? If its even possible?

Upvotes: 0

Views: 78

Answers (1)

Ayman
Ayman

Reputation: 11585

You may try to use any of the standard hashing functions and see if it fits. MD5, SHA or others. But even if a standard one was used, it might have been seeded or encrypted.

So my answer is, you probably cant determine the hashing function.

Upvotes: 2

Related Questions