Interested in improving this site? Please check the To Do page.
crypt.whirlpool
Coerces s to a string and computes a hash value using the whirlpool algorithm.
Syntax
crypt.whirlpool (s, flTranslate)
Params
- s is a string
- flTranslate is an optional boolean parameter, determining the format of the return value
Returns
The whirlpool hash value of s. If flTranslate is true (the default), the hash value is returned as a string in hexadecimal notation (128 characters), otherwise a 64-byte binary object of unknown type is returned.
Examples
crypt.whirlpool ("")
“19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3”
crypt.whirlpool ("a")
“8aca2602792aec6f11a67206531fb7d7f0dff59413145e6973c45001d0087b42d11bc645413aeff63a42391a39145a591a92200d560195e53b478584fdae231a”
crypt.whirlpool ("abc")
“4e2448a4c6f486bb16b6562c73b4020bf3043e3a731bce721ae1b303d97e6d4c7181eebdb6c57e277d0e34957114cbd6c797fc9d95d8b582d225292076d4eef5”