Hash input using sha512 algorithm

hash:sha512(STRING data) : STRING

hash:sha512("hi")
#=> "150a14ed5bea6cc731cf86c41566ac427a8db48ef1b9fd626664b3bfbb99071fa4c922f33dde38719b8c8354e2b7ab9d77e0e67fc12843920a712e73d558e197"

hash:sha512("")
#=> "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"

# FALSE will be transformed to "" (empty string)
hash:sha512(FALSE)
#=> "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"

hash:sha512(0) === hash:sha512("0")
#=> TRUE

hash:sha512(0.0) === hash:sha512(0)
#=> TRUE

Copyright ©2013-2022 SunSed®. All rights reserved.