Class Hash
Data hash functions.
public static class Hash
Namespace: Au.More
Assembly: Au.dll
Methods
Name | Description |
---|---|
Crypto(ReadOnlySpan<byte>, string) | Computes data hash using the specified cryptographic algorithm. |
Crypto(ReadOnlySpan<byte>, string, bool) | Computes data hash using the specified cryptographic algorithm. Returns result as hex or base64 string. |
Crypto(string, string) | Computes hash of string converted to UTF-8, using the specified cryptographic algorithm. |
Crypto(string, string, bool) | Computes hash of string converted to UTF-8, using the specified cryptographic algorithm. Returns result as hex or base64 string. |
Fast(char*, int) | FNV-1 hash, modified to make faster with long strings (then takes every n-th character). |
Fast(ReadOnlySpan<char>) | FNV-1 hash, modified to make faster with long strings (then takes every n-th character). |
Fnv1(byte*, int) | 32-bit FNV-1 hash. Useful for fast hash table and checksum use, not cryptography. Similar to CRC32; faster but creates more collisions. |
Fnv1(char*, int) | 32-bit FNV-1 hash. Useful for fast hash table and checksum use, not cryptography. Similar to CRC32; faster but creates more collisions. |
Fnv1(ReadOnlySpan<byte>) | 32-bit FNV-1 hash. Useful for fast hash table and checksum use, not cryptography. Similar to CRC32; faster but creates more collisions. |
Fnv1(ReadOnlySpan<char>) | 32-bit FNV-1 hash. Useful for fast hash table and checksum use, not cryptography. Similar to CRC32; faster but creates more collisions. |
Fnv1Long(byte*, int) | 64-bit FNV-1 hash. |
Fnv1Long(char*, int) | 64-bit FNV-1 hash. |
Fnv1Long(ReadOnlySpan<byte>) | 64-bit FNV-1 hash. |
Fnv1Long(ReadOnlySpan<char>) | 64-bit FNV-1 hash. |
Fnv1Long<T>(T) | 64-bit FNV-1 hash. |
Fnv1<T>(T) | 32-bit FNV-1 hash. Useful for fast hash table and checksum use, not cryptography. Similar to CRC32; faster but creates more collisions. |
MD5(ReadOnlySpan<byte>) | Computes MD5 hash of data. Uses Hash.MD5Context. |
MD5(ReadOnlySpan<byte>, bool) | Computes MD5 hash of data. Returns result as hex or base64 string. Uses Hash.MD5Context. |
MD5(string) | Computes MD5 hash of string converted to UTF-8. Uses Hash.MD5Context. |
MD5(string, bool) | Computes MD5 hash of string converted to UTF-8. Returns result as hex or base64 string. Uses Hash.MD5Context. |