# Package-level declarations

## Types

CryptoJs
Link copied to clipboard
external interface CryptoJs
EncodedBase64String
Link copied to clipboard
typealias EncodedBase64String = String

Type alias representing a Base64-encoded string.

EncodedByteArray
Link copied to clipboard
typealias EncodedByteArray = ByteArray

Type alias representing a Base64-encoded byte array.

MD5
Link copied to clipboard
typealias MD5 = String

Type alias representing an MD5 hash as a hex-encoded string (32 characters).

SourceBytes
Link copied to clipboard
typealias SourceBytes = ByteArray

This typealias shows that corresponding ByteArray is an raw data

SourceString
Link copied to clipboard
typealias SourceString = String

This typealias shows that corresponding String is an raw data

## Properties

CryptoJS
Link copied to clipboard
external val CryptoJS : CryptoJs
HEX_ARRAY
Link copied to clipboard
val HEX_ARRAY : CharArray

Character array used for hexadecimal encoding (lowercase).

## Functions

decodeBase64
Link copied to clipboard
fun EncodedByteArray . decodeBase64 (): SourceBytes

Decodes this Base64-encoded byte array back to the original byte array.

fun EncodedBase64String . decodeBase64 (): SourceBytes

Decodes this Base64-encoded string back to the original byte array.

decodeBase64String
Link copied to clipboard
fun EncodedByteArray . decodeBase64String (): SourceString

Decodes this Base64-encoded byte array back to the original string.

fun EncodedBase64String . decodeBase64String (): SourceString

Decodes this Base64-encoded string back to the original string.

encodeBase64
Link copied to clipboard
fun SourceBytes . encodeBase64 (): EncodedByteArray

Encodes this byte array to Base64 format, returning the result as a byte array.

fun SourceString . encodeBase64 (): EncodedByteArray

Encodes this string to Base64 format, returning the result as a byte array.

encodeBase64String
Link copied to clipboard
fun SourceBytes . encodeBase64String (): EncodedBase64String

Encodes this byte array to Base64 format, returning the result as a string.

fun SourceString . encodeBase64String (): EncodedBase64String

Encodes this string to Base64 format, returning the result as a string.

hex
Link copied to clipboard
fun SourceBytes . hex (): String

Converts this byte array to a hexadecimal string representation (lowercase). Each byte is represented as two hex characters.

fun SourceString . hex (): String

Converts this string to a hexadecimal representation by first encoding it as UTF-8 bytes.

md5
Link copied to clipboard
fun SourceBytes . md5 (): MD5

Computes the MD5 hash of this byte array and returns it as a lowercase hex string.

fun SourceString . md5 (): MD5

Computes the MD5 hash of this string (encoded as UTF-8 bytes) and returns it as a lowercase hex string.