SHA384

Implementation of Secure Hash Algorithm (SHA) digester.

SHA is a family of cryptographic hash functions used to generate a fixed-size hash value from input data of variable length. The SHA family includes variants such as SHA-1, SHA-256, SHA-512, SHA-224, and SHA-384, each with different bit lengths.

static
@digester
class SHA384 {}

Members

Static functions

hash
auto hash(ubyte[] data)

Computes the SHA-384 hash of the given byte array data.

Examples

import tern.digest.sha;

ubyte[] data = [1, 2, 3, 4, 5];
auto sha384Hash = SHA384.hash(data);

Meta