mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
format
This commit is contained in:
parent
d32395f16e
commit
3f2c3fb049
|
@ -21,8 +21,8 @@ package mdnet.server
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
|
|
||||||
fun md5Bytes(stringToHash: String) =
|
fun md5Bytes(stringToHash: String) =
|
||||||
MessageDigest.getInstance("MD5")
|
MessageDigest.getInstance("MD5")
|
||||||
.digest(stringToHash.toByteArray())
|
.digest(stringToHash.toByteArray())
|
||||||
|
|
||||||
fun printHexString(bytes: ByteArray): String {
|
fun printHexString(bytes: ByteArray): String {
|
||||||
val sb = StringBuilder()
|
val sb = StringBuilder()
|
||||||
|
|
Loading…
Reference in a new issue