Fixed mhash() and sha() to return a hashed value starting from 1