All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ybo.trackingplugin.Utils.kt Maven / Gradle / Ivy

Go to download

gradle plugin allowing to add automatic logs (or other process) at the start of each traced method

There is a newer version: 0.6.2
Show newest version
package com.ybo.trackingplugin

import java.util.Base64

fun String.toB64(): String {
    val bytes = this.toByteArray()
    val encodedBytes = Base64.getEncoder().encode(bytes)
    return String(encodedBytes)
}

fun String.decodedFromB64(): String {
    val decodedBytes = Base64.getDecoder().decode(this)
    return String(decodedBytes)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy