![]() |
BogaNet 1.4.0
|
Helper for hash computations. It contains ready-to-use implementations of SHA256, SHA384, SHA512, SHA3-256, SHA3-384 and SHA3-512. More...
Static Public Member Functions | |
static byte[] | Hash (byte[] bytes, HashAlgorithm algo) |
Generates a hash-value as byte-array from a given byte-array and algorithm as input. | |
static byte[] | Hash (string text, HashAlgorithm algo, Encoding? encoding=null) |
Generates a hash-value as byte-array from a given string and algorithm as input. | |
static byte[] | HashFile (string file, HashAlgorithm algo) |
Generates a hash-value as byte-array from a file. | |
static async Task< byte[]> | HashFileAsync (string file, HashAlgorithm algo) |
Generates a hash-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA256 (params byte[] bytes) |
Generates a SHA256-value as byte-array from a byte-array. | |
static byte[] | HashSHA256 (string text, Encoding? encoding=null) |
Generates a SHA256-value as byte-array from a string. | |
static byte[] | HashSHA256File (string file) |
Generates a SHA256-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA256FileAsync (string file) |
Generates a SHA256-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA384 (params byte[] bytes) |
Generates a SHA384-value as byte-array from a given byte-array. | |
static byte[] | HashSHA384 (string text, Encoding? encoding=null) |
Generates a SHA384-value as byte-array from a given string. | |
static byte[] | HashSHA384File (string file) |
Generates a SHA384-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA384FileAsync (string file) |
Generates a SHA384-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA512 (params byte[] bytes) |
Generates a SHA512-value as byte-array from a given byte-array. | |
static byte[] | HashSHA512 (string text, Encoding? encoding=null) |
Generates a SHA512-value as byte-array from a given string. | |
static byte[] | HashSHA512File (string file) |
Generates a SHA512-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA512FileAsync (string file) |
Generates a SHA512-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA3_256 (params byte[] bytes) |
Generates a SHA3-256-value as byte-array from a byte-array. | |
static byte[] | HashSHA3_256 (string text, Encoding? encoding=null) |
Generates a SHA3-256-value as byte-array from a string. | |
static byte[] | HashSHA3_256File (string file) |
Generates a SHA3-256-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA3_256FileAsync (string file) |
Generates a SHA3-256-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA3_384 (params byte[] bytes) |
Generates a SHA3-384-value as byte-array from a given byte-array. | |
static byte[] | HashSHA3_384 (string text, Encoding? encoding=null) |
Generates a SHA3-384-value as byte-array from a given string. | |
static byte[] | HashSHA3_384File (string file) |
Generates a SHA3-384-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA3_384FileAsync (string file) |
Generates a SHA3-384-value as byte-array from a file asynchronously. | |
static byte[] | HashSHA3_512 (params byte[] bytes) |
Generates a SHA3-512-value as byte-array from a given byte-array. | |
static byte[] | HashSHA3_512 (string text, Encoding? encoding=null) |
Generates a SHA3-512-value as byte-array from a given string. | |
static byte[] | HashSHA3_512File (string file) |
Generates a SHA3-512-value as byte-array from a file. | |
static async Task< byte[]> | HashSHA3_512FileAsync (string file) |
Generates a SHA3-512-value as byte-array from a file asynchronously. | |
Helper for hash computations. It contains ready-to-use implementations of SHA256, SHA384, SHA512, SHA3-256, SHA3-384 and SHA3-512.
|
static |
Generates a hash-value as byte-array from a given byte-array and algorithm as input.
bytes | Data as byte-array |
algo | Hash-algorithm |
Exception |
|
static |
Generates a hash-value as byte-array from a given string and algorithm as input.
text | Data as string |
algo | Hash-algorithm |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a hash-value as byte-array from a file.
file | File to hash |
algo | Hash-algorithm |
Exception |
|
static |
Generates a hash-value as byte-array from a file asynchronously.
file | File to hash |
algo | Hash-algorithm |
Exception |
|
static |
Generates a SHA256-value as byte-array from a byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA256-value as byte-array from a string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA256-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA256-value as byte-array from a file asynchronously.
file | File to hash |
Exception |
|
static |
Generates a SHA384-value as byte-array from a given byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA384-value as byte-array from a given string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA384-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA384-value as byte-array from a file asynchronously.
file | File to hash |
Exception |
|
static |
Generates a SHA3-256-value as byte-array from a byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA3-256-value as byte-array from a string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA3-256-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA3-256-value as byte-array from a file asynchronously.
file | File to hash |
Exception |
|
static |
Generates a SHA3-384-value as byte-array from a given byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA3-384-value as byte-array from a given string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA3-384-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA3-384-value as byte-array from a file asynchronously.
file | File to hash |
Exception |
|
static |
Generates a SHA3-512-value as byte-array from a given byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA3-512-value as byte-array from a given string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA3-512-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA3-512-value as byte-array from a file asynchronously.
file | File to hash |
Exception |
|
static |
Generates a SHA512-value as byte-array from a given byte-array.
bytes | Data as byte-array |
Exception |
|
static |
Generates a SHA512-value as byte-array from a given string.
text | Data as string |
encoding | Encoding of the string (optional, default: UTF8) |
Exception |
|
static |
Generates a SHA512-value as byte-array from a file.
file | File to hash |
Exception |
|
static |
Generates a SHA512-value as byte-array from a file asynchronously.
file | File to hash |
Exception |