deprecate hmacSha256

This commit is contained in:
InsanusMokrassar committed 2022-06-30 13:19:37 +06:00
1 parent d4c5e849bf
commit 905c7e8eda
4 files changed
+5

No files matched your search

@@ -8,6 +8,7 @@ external interface CryptoJs {
@JsNonModule
external val CryptoJS: CryptoJs
@Deprecated("Deprecated due to incorrect of work sometimes and redundancy. Can be replaced by korlibs krypto")
actual fun SourceString.hmacSha256(key: String): String {
return CryptoJS.asDynamic().HmacSHA256(this, key).toString().unsafeCast<String>()
}