deprecate hmac and hex extensions for CryptoJS in webapp

This commit is contained in:
InsanusMokrassar 2022-05-17 19:54:13 +06:00
parent 58c1f2ee6a
commit c759b9a466
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ package dev.inmo.tgbotapi.webapps
import dev.inmo.micro_utils.crypto.CryptoJs
@Deprecated("Useless")
fun CryptoJs.HmacSHA256(text: String, key: String) = this.asDynamic().HmacSHA256(text, key).unsafeCast<String>()
@Deprecated("Useless")
fun CryptoJs.hex(text: String) = this.asDynamic().format.Hex(text).unsafeCast<String>()