Polyglot hash calculation function is implemented