Djb2 extensions for hashing function