com.github.rs3vans.krypto / kotlin.CharSequence

Extensions for kotlin.CharSequence

toBytes fun CharSequence.toBytes(charset: Charset = Charsets.UTF_8): Bytes

Extension function that converts (encodes) a CharSequence to an instance of Bytes using the given charset.

toBytesFromBase64 fun CharSequence.toBytesFromBase64(): Bytes

Decode a Base64-encoded String to a Bytes.

toBytesFromHex fun CharSequence.toBytesFromHex(): Bytes

Decode a Hex-encoded String to a Bytes.