Kase64
1.3.1indexedBase64 encoder/decoder supporting standard and URL-safe encodings. Enables simple encoding and decoding of strings across various platforms.
39
Stars
1
Used by
dependents
—
Health
/ 100
Base64 encoder/decoder supporting standard and URL-safe encodings. Enables simple encoding and decoding of strings across various platforms.
Base64 encoder/decoder for Kotlin/Multiplatform. Supports Android, iOS, Linux, JavaScript, Windows, watchOS, tvOS and plain JVM environments.
Supported encodings
Artifacts are published to Maven Central:
repositories {
mavenCentral()
}
dependencies {
implementation("de.peilicke.sascha:kase64:1.4.0")
}
Standard Base64 decoding and encoding:
import saschpe.kase64.*
val helloWorld = "SGVsbG8sIHdvcmxkIQ==".base64Decoded // "Hello, world!"
println("Hello, world!".base64Encoded) // Prints "SGVsbG8sIHdvcmxkIQ=="
URL-safe Base64 decoding and encoding:
import saschpe.kase64.*
val helloWorld = "SGVsbG8sIHdvcmxkIQ".base64UrlDecoded // "Hello, world!"
println("Hello, world!".base64UrlEncoded) // Prints "SGVsbG8sIHdvcmxkIQ"
Copyright 2022 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance the License.
You may obtain a copy of the License at
http:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.