Sha512
Computes a SHA-512 digest.
Module: Std::Hash::Sha512
Signature
rux
func Hash(message: char8[]) -> String;Parameters
| Name | Type | Description |
|---|---|---|
message | char8[] | The data to hash. |
Returns
String — the 64-byte (512-bit) digest as a 128-character lowercase hex string.
Description
SHA-512 is a secure cryptographic hash with a larger digest than Sha256; it is often faster on 64-bit hardware. Call it as Sha512::Hash(...).
Example
rux
import Std::Hash::Sha512;
import Std::Io::PrintLine;
func Main() -> int {
PrintLine(Sha512::Hash("hello"));
return 0;
}