Table of Contents

Enum HashAlgorithm

Namespace
CivitaiSharp.Tools.Hashing
Assembly
CivitaiSharp.Tools.dll

Specifies the hash algorithm to use for file hashing operations.

public enum HashAlgorithm
Extension Methods

Fields

Blake3 = 2

BLAKE3 hash algorithm - fast, modern, and cryptographically secure. Used by Civitai for model file hashing. Produces a 256-bit hash by default.

Crc32 = 3

CRC32 checksum algorithm - fast but not cryptographically secure. Used for basic integrity checks. Produces a 32-bit checksum.

Sha256 = 0

SHA-256 hash algorithm - widely compatible and used by Civitai for model verification. Produces a 256-bit (32-byte) hash, represented as 64 hexadecimal characters.

Sha512 = 1

SHA-512 hash algorithm - provides stronger security than SHA-256. Produces a 512-bit (64-byte) hash, represented as 128 hexadecimal characters.