https://github.com/saschpe/kex
Hex string encoder/decoder for Kotlin/Multiplatform. Supports Android, iOS, JavaScript and plain JVM environments.
https://github.com/saschpe/kex
android hex hex-strings ios kotlin kotlin-library kotlin-multiplatform
Last synced: 7 days ago
JSON representation
Hex string encoder/decoder for Kotlin/Multiplatform. Supports Android, iOS, JavaScript and plain JVM environments.
- Host: GitHub
- URL: https://github.com/saschpe/kex
- Owner: saschpe
- License: apache-2.0
- Created: 2022-03-07T11:40:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T14:57:05.000Z (15 days ago)
- Last Synced: 2025-04-16T21:38:13.742Z (15 days ago)
- Topics: android, hex, hex-strings, ios, kotlin, kotlin-library, kotlin-multiplatform
- Language: Kotlin
- Homepage:
- Size: 255 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Kex

[](https://search.maven.org/search?q=g:%22de.peilicke.sascha%22%20AND%20a:%22kex%22)
[](https://github.com/saschpe/kex/actions)
[](http://www.apache.org/licenses/LICENSE-2.0.html)





[//]: # ()
[//]: # ()
Hex string encoder/decoder for Kotlin/Multiplatform. Supports Android, iOS, Linux, JavaScript, Windows, watchOS, tvOS
and plain JVM environments.## Download
Artifacts are published to [Maven Central][maven-central]:
```kotlin
repositories {
mavenCentral()
}dependencies {
implementation("de.peilicke.sascha:kex:1.1.4")
}
```## Usage
See the various unit test cases for the various conversion functions
- [ByteArrayTest](kex/src/commonTest/kotlin/saschpe/kex/ByteArrayTest.kt)
- [HexTest](kex/src/commonTest/kotlin/saschpe/kex/HexTest.kt)
- [StringTest](kex/src/commonTest/kotlin/saschpe/kex/StringTest.kt)## License
Copyright 2022 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.[maven-central]: https://search.maven.org/artifact/de.peilicke.sascha/kex