Erweiterung der UnitTests und kleinere Fixes
This commit is contained in:
@@ -50,14 +50,14 @@
|
||||
/// </summary>
|
||||
/// <param name="str">The string to hash, using UTF-8 encoding.</param>
|
||||
/// <returns>The SHA-256 hash value, in hexadecimal notation.</returns>
|
||||
public static string Sha256(string str) => CryptographyHelper.Sha256(str);
|
||||
public static string Sha256(this string str) => CryptographyHelper.Sha256(str);
|
||||
|
||||
/// <summary>
|
||||
/// Computes a hash from a byte array value using the SHA-256 algorithm.
|
||||
/// </summary>
|
||||
/// <param name="bytes">The byte array.</param>
|
||||
/// <returns>The SHA-256 hash value, in hexadecimal notation.</returns>
|
||||
public static string Sha256(byte[] bytes) => CryptographyHelper.Sha256(bytes);
|
||||
public static string Sha256(this byte[] bytes) => CryptographyHelper.Sha256(bytes);
|
||||
|
||||
#endregion SHA-256
|
||||
|
||||
|
||||
Reference in New Issue
Block a user