mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-12-18 12:16:02 +00:00
deprecate hmacSha256
This commit is contained in:
@@ -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>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user