/// <summary>
 /// Gets the SHA2 224 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] SHA2_224(this byte[] input) => HashGenerationHelpers.GetHash(input, new Sha224Digest());
Exemple #2
0
 /// <summary>
 /// Gets the <see cref="HMACSHA384"/> hash of a <see langword="string"/> input.
 /// </summary>
 /// <param name="input"> The <see langword="string"/> to get the hash for. </param>
 /// <returns> The <see cref="HMACSHA384"/> hashed <see langword="string"/>. </returns>
 public static string HMACSHA2_384(this string input) => HashGenerationHelpers.GetHash <HMACSHA384>(input);
Exemple #3
0
 /// <summary>
 /// Gets the <see cref="HMACSHA512"/> hash of a <see langword="string"/> input.
 /// </summary>
 /// <param name="input"> The <see langword="string"/> to get the hash for. </param>
 /// <returns> The <see cref="HMACSHA512"/> hashed <see langword="string"/>. </returns>
 public static string HMACSHA2_512(this string input) => HashGenerationHelpers.GetHash <HMACSHA512>(input);
Exemple #4
0
 /// <summary>
 /// Gets the <see cref="System.Security.Cryptography.HMACMD5"/> hash of a <see langword="string"/> input.
 /// </summary>
 /// <param name="input"> The <see langword="string"/> to get the hash for. </param>
 /// <returns> The <see cref="System.Security.Cryptography.HMACMD5"/> hashed <see langword="string"/>. </returns>
 public static string HMACMD5(this string input) => HashGenerationHelpers.GetHash <HMACMD5>(input);
Exemple #5
0
 /// <summary>
 /// Gets the <see cref="System.Security.Cryptography.HMACRIPEMD160"/> hash of a <see langword="string"/> input.
 /// </summary>
 /// <param name="input"> The <see langword="string"/> to get the hash for. </param>
 /// <returns> The <see cref="System.Security.Cryptography.HMACRIPEMD160"/> hashed <see langword="string"/>. </returns>
 public static string HMACRIPEMD160(this string input) => HashGenerationHelpers.GetHash <HMACRIPEMD160>(input);
 /// <summary>
 /// Gets the Blake2b 512 bit hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Blake2_512(this string input) => HashGenerationHelpers.GetHash(input, new Blake2bDigest(512));
 /// <summary>
 /// Gets the Keccak 224 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Keccak_224(this byte[] input) => HashGenerationHelpers.GetHash(input, new KeccakDigest(224));
 /// <summary>
 /// Gets the Shake 256 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Shake_256(this byte[] input) => HashGenerationHelpers.GetHash(input, new ShakeDigest(256));
 /// <summary>
 /// Gets the Skein 256 bit hash of a <see cref="string"/>
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Skein_256(this string input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(256, 256));
 /// <summary>
 /// Gets the SHA3 512 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] SHA3_512(this byte[] input) => HashGenerationHelpers.GetHash(input, new Sha3Digest(512));
 /// <summary>
 /// Gets the Shake 256 bit hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Shake_256(this string input) => HashGenerationHelpers.GetHash(input, new ShakeDigest(256));
 /// <summary>
 /// Gets the SHA3 512 bit hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string SHA3_512(this string input) => HashGenerationHelpers.GetHash(input, new Sha3Digest(512));
 /// <summary>
 /// Gets the <see cref="SHA256"/> hash of a <see langword="byte"[]/> input.
 /// </summary>
 /// <param name="input"> The <see langword="byte"/>[] data to get the hash for. </param>
 /// <returns> The <see cref="SHA256"/> hashed <see langword="byte"/>[] data. </returns>
 public static byte[] SHA2_256(this byte[] input) => HashGenerationHelpers.GetHash <SHA256>(input);
 /// <summary>
 /// Gets the <see cref="SHA256"/> hash of a <see langword="string"/> input.
 /// </summary>
 /// <param name="input"> The <see langword="string"/> to get the hash for. </param>
 /// <returns> The <see cref="SHA256"/> hashed <see langword="string"/>. </returns>
 public static string SHA2_256(this string input) => HashGenerationHelpers.GetHash <SHA256>(input);
 /// <summary>
 /// Gets the Whirlpool hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Whirlpool(this string input) => HashGenerationHelpers.GetHash(input, new WhirlpoolDigest());
 /// <summary>
 /// Gets the Skein 256 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Skein_256(this byte[] input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(256, 256));
 /// <summary>
 /// Gets the Whirlpool hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Whirlpool(this byte[] input) => HashGenerationHelpers.GetHash(input, new WhirlpoolDigest());
 /// <summary>
 /// Gets the Skein 512 bit hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Skein_512(this string input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(512, 512));
 /// <summary>
 /// Gets the Blake2b 512 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Blake2_512(this byte[] input) => HashGenerationHelpers.GetHash(input, new Blake2bDigest(512));
 /// <summary>
 /// Gets the Skein 512 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Skein_512(this byte[] input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(512, 512));
 /// <summary>
 /// Gets the Keccak 256 bit hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Keccak_256(this string input) => HashGenerationHelpers.GetHash(input, new KeccakDigest(256));
 /// <summary>
 /// Gets the Skein 1024 bit hash of a <see cref="string"/>
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string Skein_1024(this string input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(1024, 1024));
Exemple #23
0
 /// <summary>
 /// Gets the <see cref="System.Security.Cryptography.HMACMD5"/> hash of a <see langword="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see langword="byte"/>[] data to get the hash for. </param>
 /// <returns> The <see cref="System.Security.Cryptography.HMACMD5"/> hashed <see langword="byte"/>[] data. </returns>
 public static byte[] HMACMD5(this byte[] input) => HashGenerationHelpers.GetHash <HMACMD5>(input);
 /// <summary>
 /// Gets the Skein 1024 bit hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] Skein_1024(this byte[] input) => HashGenerationHelpers.GetHash(input, new SkeinDigest(1024, 1024));
Exemple #25
0
 /// <summary>
 /// Gets the <see cref="System.Security.Cryptography.HMACRIPEMD160"/> hash of a <see langword="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see langword="byte"/>[] data to get the hash for. </param>
 /// <returns> The <see cref="System.Security.Cryptography.HMACRIPEMD160"/> hashed <see langword="byte"/>[] data. </returns>
 public static byte[] HMACRIPEMD160(this byte[] input) => HashGenerationHelpers.GetHash <HMACRIPEMD160>(input);
 /// <summary>
 /// Gets the SM3 hash of a <see cref="string"/> input.
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string SM3(this string input) => HashGenerationHelpers.GetHash(input, new SM3Digest());
Exemple #27
0
 /// <summary>
 /// Gets the <see cref="HMACSHA384"/> hash of a <see langword="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see langword="byte"/>[] to get the hash for. </param>
 /// <returns> The <see cref="HMACSHA384"/> hashed <see langword="byte"/>[] data. </returns>
 public static byte[] HMACSHA2_384(this byte[] input) => HashGenerationHelpers.GetHash <HMACSHA384>(input);
 /// <summary>
 /// Gets the SM3 hash of a <see cref="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see cref="byte"/>[] to hash. </param>
 /// <returns> The hashed <see cref="byte"/>[]. </returns>
 public static byte[] SM3(this byte[] input) => HashGenerationHelpers.GetHash(input, new SM3Digest());
Exemple #29
0
 /// <summary>
 /// Gets the <see cref="HMACSHA512"/> hash of a <see langword="byte"/>[] input.
 /// </summary>
 /// <param name="input"> The <see langword="byte"/>[] data to get the hash for. </param>
 /// <returns> The <see cref="HMACSHA512"/> hashed <see langword="byte"/>[] data. </returns>
 public static byte[] HMACSHA2_512(this byte[] input) => HashGenerationHelpers.GetHash <HMACSHA512>(input);
 /// <summary>
 /// Gets the SHA2 224 bit hash of a <see cref="string"/>
 /// </summary>
 /// <param name="input"> The <see cref="string"/> to get the hash for. </param>
 /// <returns> The hashed <see cref="string"/>. </returns>
 public static string SHA2_224(this string input) => HashGenerationHelpers.GetHash(input, new Sha224Digest());