mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-13 23:42:56 +00:00
create crypto project
This commit is contained in:
1 parent
d074f29b82
commit
a4020cb484
13 files changed
+193
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package dev.inmo.micro_utils.crypto
|
||||
|
||||
external interface CryptoJs {
|
||||
fun MD5(data: String): String
|
||||
}
|
||||
|
||||
@JsModule("crypto-js")
|
||||
@JsNonModule
|
||||
external val CryptoJS: CryptoJs
|
||||
@@ -0,0 +1,3 @@
|
||||
package dev.inmo.micro_utils.crypto
|
||||
|
||||
actual fun SourceBytes.md5(): MD5 = CryptoJS.MD5(decodeToString())
|
||||
Reference in new issue
Block a user