Classes providing strong hashes, suitable for cryptography
Hashes in this group are cryptographically strong and can be used for secure verification of data.
Convenience function that calculates a 160 bits long RIPEMD160 hash
ripemd160()
| Return | A lowercase hexadecimal string with the RIPEMD160 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function ripemd160(...)
hash = RIPEMD160Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a RIPEMD160Hash object, nor finalization.
See also: RIPEMD160Hash.
Convenience function that calculates a 256 bits long RIPEMD256 hash.
ripemd256()
| Return | A lowercase hexadecimal string with the RIPEMD256 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function ripemd256(...)
hash = RIPEMD256Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a RIPEMD256Hash object, nor finalization.
See also: RIPEMD256Hash.
Convenience function that calculates a 320 bits long RIPEMD320 hash
ripemd320()
| Return | A lowercase hexadecimal string with the RIPEMD320 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function ripemd320(...)
hash = RIPEMD320Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a RIPEMD320Hash object, nor finalization.
See also: RIPEMD320Hash.
Convenience function that calculates a 224 bits long SHA224 hash
sha224()
| Return | A lowercase hexadecimal string with the SHA224 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function sha224(...)
hash = SHA224Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a SHA224Hash object, nor finalization.
See also: SHA224Hash.
Convenience function that calculates a 256 bits long SHA256 hash
sha256()
| Return | A lowercase hexadecimal string with the SHA256 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function sha256(...)
hash = SHA256Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a SHA256Hash object, nor finalization.
See also: SHA256Hash.
Convenience function that calculates a 384 bits long SHA384 hash
sha384()
| Return | A lowercase hexadecimal string with the SHA384 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function sha384(...)
hash = SHA384Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a SHA384Hash object, nor finalization.
See also: SHA384Hash.
Convenience function that calculates a 512 bits long SHA512 hash
sha512()
| Return | A lowercase hexadecimal string with the SHA512 hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function sha512(...)
hash = SHA512Hash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a SHA512Hash object, nor finalization.
See also: SHA512Hash.
Convenience function that calculates a 192 bits long Tiger hash
tiger()
| Return | A lowercase hexadecimal string with the Tiger hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function tiger(...)
hash = TigerHash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a TigerHash object, nor finalization.
See also: TigerHash.
Convenience function that calculates a 512 bits long Whirlpool hash
whirlpool()
| Return | A lowercase hexadecimal string with the Whirlpool hash. |
This function takes an arbitrary amount of parameters. See HashBase.update() for details.
The semantics are equal to:
function whirlpool(...)
hash = WhirlpoolHash()
hash.update(...)
hash.finalize()
return hash.toString()
end
Note: This is a shortcut function that does neither require creation of a WhirlpoolHash object, nor finalization.
See also: WhirlpoolHash.
See also: WhirlpoolHash.