string/[]byte hash revised