EDIT: or maybe this keyed rolling hash https://crypto.stackexchange.com/questions/16082/cryptograph...
EDIT: or maybe this keyed rolling hash https://crypto.stackexchange.com/questions/16082/cryptograph...