Skip to content

Commit 92a51a7

Browse files
committed
Add facade overloads for Secure Hash
1 parent a8b3c8f commit 92a51a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SisCryptoHash.cs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using SisCrypto.Backends;
2+
3+
namespace SisCrypto {
4+
public static partial class SisCrypto {
5+
public static byte[] SecureHash(byte[] data, int version = SISCRYPTO_LATEST_VERSION)
6+
=> SisCryptoBackend.GetVersion(version).SecureHash(data);
7+
8+
public static byte[] SecureHash(string data, int version = SISCRYPTO_LATEST_VERSION)
9+
=> SecureHash(StringToBytes(data, version), version);
10+
}
11+
}

0 commit comments

Comments
 (0)