EncodingUtils

A wrapper class that has been introduced in the migration from Kotlin to Java to house static functions.

Functions

Link copied to clipboard
@NotNull
open fun base58toBase64(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun base58ToByteArray(@NotNull encoded: String): Array<Byte>
Link copied to clipboard
@NotNull
open fun base58toHex(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun base58ToRealString(@NotNull encoded: String): String
Base58-String to the actual real String, that is "JxF12TrwUP45BMd" to "Hello World".
Link copied to clipboard
@NotNull
open fun base64toBase58(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun base64ToByteArray(@NotNull encoded: String): Array<Byte>
Link copied to clipboard
@NotNull
open fun base64toHex(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun base64ToRealString(@NotNull encoded: String): String
Base64-String to the actual real String, that is "SGVsbG8gV29ybGQ=" to "Hello World".
Link copied to clipboard
@NotNull
open fun hexToBase58(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun hexToBase64(@NotNull input: String): String
Encoding changer.
Link copied to clipboard
@NotNull
open fun hexToByteArray(@NotNull encoded: String): Array<Byte>
Hex-String to byte[].
Link copied to clipboard
@NotNull
open fun hexToRealString(@NotNull encoded: String): String
HEX-String to the actual real String, that is "48656C6C6F20576F726C64" to "Hello World".
Link copied to clipboard
@NotNull
open fun toBase58(@NotNull bytes: Array<Byte>): String
Convert a byte array to a Base64 encoded String.
Link copied to clipboard
@NotNull
open fun toBase64(@NotNull bytes: Array<Byte>): String
Convert a byte array to a Base58 encoded String.
Link copied to clipboard
@NotNull
open fun toHex(@NotNull bytes: Array<Byte>): String
Convert a byte array to a hex (Base16) capitalized encoded String.