OxL Reference

method sha2.sha512

The SHA-512 digest of input (64 bytes).

Example:

oxl✓ checked in CI
use std.crypto { sha2 }
use std.ser { bytesOf }

fn main() io {
  print("{sha2.sha512(bytesOf(&"abc")).len()}")
}
Output
64
pub(api) static fn sha512(input: bytes) -> bytes

Since. 1.0.0-beta

Parameters

NameType
inputbytes

Returns

bytes

Effects

none declared (pure unless the body says otherwise)

Defined in: std/crypto/crypto.oxl:129

See also