Implementation of multibase -self identifying base encodings- in Kotlin.
Add the relevant dependency to your project:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
<dependency>
<groupId>io.ipfs.multiformats</groupId>
<artifactId>kotlin-multibase</artifactId>
<version>1.0.1</version>
<type>pom</type>
</dependency>
compile 'io.ipfs.multiformats:kotlin-multibase:1.0.1'
val input:String = "..."
val decode = MultiBase.decode(input)
val inputByteArray: ByteArray = ....
val encode = MultiBase.encode(MultiBase.Base.BASE32, inputByteArray)
Captain: @changjiashuai.
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2016 Protocol Labs Inc.