A generic python based hasher