Alternative hash algorithm