Esempio n. 1
0
 /// <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());
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 6
0
 /// <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));
Esempio n. 7
0
 /// <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));
Esempio n. 8
0
 /// <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));
Esempio n. 9
0
 /// <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));
Esempio n. 10
0
 /// <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));
Esempio n. 11
0
 /// <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));
Esempio n. 12
0
 /// <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));
Esempio n. 13
0
 /// <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);
Esempio n. 14
0
 /// <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);
Esempio n. 15
0
 /// <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());
Esempio n. 16
0
 /// <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));
Esempio n. 17
0
 /// <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());
Esempio n. 18
0
 /// <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));
Esempio n. 19
0
 /// <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));
Esempio n. 20
0
 /// <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));
Esempio n. 21
0
 /// <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));
Esempio n. 22
0
 /// <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));
Esempio n. 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);
Esempio n. 24
0
 /// <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));
Esempio n. 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);
Esempio n. 26
0
 /// <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());
Esempio n. 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);
Esempio n. 28
0
 /// <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());
Esempio n. 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);
Esempio n. 30
0
 /// <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());