Manual Hash Function -
i need hash function, h(x), fulfilling following:
(1) inputs around 10 digits , outputs around 10 digits.
(2) if change x single digit, totally different h(x).
(3) easy calculate manually. people going calculate by hand. need them able , no mistakes.
thank creative ideas!
edit: "hash" mean in spirit of "one-way-hash". - given h(x) should hard find possible values x. hard human being.
edit: for? exam. students going calculations , numbers answers. want them able know, during test, if got answers right. idea is: concatenate answers 1 number x. calculate h(x). use h(x) decipher code, digit digit, , short message indicating correctness. don't want them able figure out 4th answer after got first 3.
each digit coefficient of polynomial: ie 1234 1*x^3+2*x^2+3*x+4. compute value of polynomial predetermined x, 987654321 , truncate desired number of digits.
Comments
Post a Comment