shorten SHA512 method