BCoder

class BCoder(val charset: Charset) extends Encoder[String, String] with Decoder[String, String]

Identical to the Base64 encoding defined by RFC 1521 and allows a character set to be specified.

RFC 1522 describes techniques to allow the encoding of non-ASCII text in various portions of a RFC 822 [2] message header, in a manner which is unlikely to confuse existing message handling software.

See also:
Since:

3.2.0

Companion:
object
trait Decoder[String, String]
trait Encoder[String, String]
class Object
trait Matchable
class Any

Value members

Concrete methods

def decode(text: String): String

Decodes a Base64 string into its original form. Escaped characters are converted back to their original representation.

Decodes a Base64 string into its original form. Escaped characters are converted back to their original representation.

Value parameters:
text

Base64 string to convert into its original form

Returns:

original string

def encode(value: String): String

Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped.

Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped.

Value parameters:
value

string to convert to Base64 form

Returns:

Base64 string

Concrete fields

val charset: Charset