Class Fnv64
- Namespace
- LlamaLogic.Packages.Cryptography
- Assembly
- LlamaLogic.Packages.dll
Represents the 64-bit implementation of the Fowler–Noll–Vo hash algorithm
public class Fnv64 : FnvHash, ICryptoTransform, IDisposable
- Inheritance
-
Fnv64
- Implements
- Derived
- Inherited Members
Constructors
Fnv64()
Initializes a new instance of the Fnv64 class
public Fnv64()
Fields
EmptyStringHash
Gets the hash value for an empty string
public static readonly ulong EmptyStringHash
Field Value
Properties
Hash
Gets the value of the computed hash code.
public override byte[]? Hash { get; }
Property Value
- byte[]
The current value of the computed hash code.
Exceptions
- CryptographicUnexpectedOperationException
- ObjectDisposedException
The object has already been disposed.
HashSize
Gets the size, in bits, of the computed hash code.
public override int HashSize { get; }
Property Value
- int
The size, in bits, of the computed hash code.
Methods
GetHash(string?)
Computes the hash value for the specified string
public static ulong GetHash(string? text)
Parameters
text
string
Returns
SetHighBit(ulong)
Sets the high bit of a 64-bit Fowler–Noll–Vo hash
public static ulong SetHighBit(ulong hash)
Parameters
hash
ulong