use hash/2 to generate sha for R16 compatibility