deprecate hmacSha256

This commit is contained in:
2022-06-30 13:19:37 +06:00
parent d4c5e849bf
commit 905c7e8eda
4 changed files with 5 additions and 0 deletions

View File

@@ -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>()
}