A quantum hash function with grouped coarse-grained boson sampling