Add generic hash calculator

add SHA512