EncryptionUtils

Functions

Link copied to clipboard
fun decryptAES(input: String, key: String): String?

AES,key length must be 16

Link copied to clipboard
fun decryptDES(input: String, key: String): String?

DES, key length must be 8

Link copied to clipboard
fun encryptAES(input: String, key: String): String?

AES, key length must be 16

Link copied to clipboard
fun encryptDES(input: String, key: String): String?

DES, key length must be 8

Link copied to clipboard

Return the bytes of HmacMD5 encryption.

Link copied to clipboard

Return the hex string of HmacMD5 encryption.

Link copied to clipboard

Return the bytes of HmacSHA1 encryption.

Link copied to clipboard

Return the hex string of HmacSHA1 encryption.

Link copied to clipboard

Return the bytes of HmacSHA256 encryption.

Link copied to clipboard

Return the hex string of HmacSHA256 encryption.

Link copied to clipboard

Return the bytes of MD5 encryption.

Link copied to clipboard
fun encryptMD5ToString(data: String?, salt: String?): String

Return the hex string of MD5 encryption.

Link copied to clipboard

Return the bytes of SHA1 encryption.

Link copied to clipboard

Return the hex string of SHA1 encryption.

Link copied to clipboard

Return the bytes of SHA256 encryption.

Link copied to clipboard

Return the hex string of SHA256 encryption.

Link copied to clipboard

Return the bytes of SHA512 encryption.

Link copied to clipboard

Return the hex string of SHA512 encryption.