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

data sha3

SHA-3 digests.

Example:

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

fn main() io {
  print(hex(&sha3.sha3_256(bytesOf(&"abc"))))
}
Вывод
3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532
pub(api) data sha3

Потокобезопасность. pure functions; safe from any task.

С версии. 1.0.0-beta

Методы

sha3_256(input: bytes) -> bytes
The SHA-3-256 digest of input (32 bytes).
sha3_512(input: bytes) -> bytes
The SHA-3-512 digest of input (64 bytes).

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

См. также