Infendro bd5d904a3b
All checks were successful
/ publish (push) Successful in 3m27s
1.2.0 release
Reviewed-on: Infendro/kotlin-encoding#2
2025-11-18 10:32:04 +00:00
2025-07-12 18:16:33 +02:00
2025-11-18 11:22:05 +01:00
2025-11-18 11:24:28 +01:00
2025-07-12 18:16:33 +02:00
2025-11-18 11:22:27 +01:00
2025-10-03 11:49:38 +02:00
2025-10-03 11:49:38 +02:00
2025-07-12 18:16:33 +02:00
2025-10-03 12:30:36 +02:00
2025-07-12 18:16:33 +02:00

Kotlin Encoding

This library provides various character encodings in Kotlin Multiplatform.

Features

  • Encode and decode ByteArrays using various character encodings.
    • Binary
    • Hex
    • Base32
    • Base64
  • Multiplatform support
    • JVM
    • JavaScript
    • Native (Linux)

Installation

Add the following to your build.gradle.kts.

repositories {
    maven("https://git.infendro.com/api/packages/Infendro/maven")
}

dependencies {
    implementation("com.infendro:encoding:1.1.0")
}

Usage

import com.infendro.encoding.Hex

fun main() {
    // the string to encode
    val test = "Hello World!".encodeToByteArray()

    // encode the string with the desired encoding
    val encoded = Hex.encode(test).decodeToString()

    println(encoded) // 48656c6c6f20576f726c6421
}
Description
No description provided
Readme 214 KiB
Languages
Kotlin 100%