Skip to content

Sha256

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.

Sha256

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

public static class Sha256

hash

Digests data and returns its 32-byte SHA-256 hash.

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