OxL Справочник OxL
РусскийEnglish

method sha2.sha512

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

Example:

oxl✓ проверяется в CI
use std.crypto { sha2 }
use std.ser { bytesOf }

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

С версии. 1.0.0-beta

Параметры

ИмяТип
inputbytes

Возвращает

bytes

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/crypto/crypto.oxl:129

См. также