Skip to content

Sha512

1 min read

Import: import system.crypto;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

Sha512

SHA-512 message digest (FIPS 180-4). The same input always produces the same 64-byte hash on every target.

public static class Sha512

hash

Digests data and returns its 64-byte SHA-512 hash.

public static fun hash(borrow data: byte[]): byte[]