Infendro 841bdfa21e
All checks were successful
/ publish (push) Successful in 4m1s
Merge pull request '1.3.0 release' (#7) from develop into main
Reviewed-on: Infendro/encoding-kt#7
2026-01-29 16:46:03 +00:00
2026-01-17 12:39:30 +01:00
2026-01-17 12:36:16 +01:00
2026-01-21 22:04:51 +01:00
2025-07-12 18:16:33 +02:00
2026-01-17 12:36:16 +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
2026-01-21 22:09:31 +01:00
2025-12-13 01:49:22 +01:00

encoding-kt

encoding-kt is a Kotlin Multiplatform library that provides common ByteArray encodings.

Supported encodings:

  • Base2 (binary)
  • Base8 (octal)
  • Base10 (decimal)
  • Base16 (hexadecimal, uppercase/lowercase)
  • Base32
  • Base36
  • Base45
  • Base56
  • Base58
  • Base62
  • Base64 (standard/URL)

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.3.0")
}

Usage

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

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

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