Simple Java Base64 encoder/decoder, MIT (c) 2020-2021 miktim@mail.ru
Release notes:
- encoding/decoding is done as specified in the RFC 4648 "4. Base 64 Encoding";
- bytes are encoded as single line;
- decoder removes CRLF, the padding '=' characters at the end are considered optional.
package org.miktim
Class Base64 public methods:
static String encode(byte[] b);
static byte[] decode(String s) throws IllegalArgumentException;
See also core classes:
- Java 8+: java.util.Base64
- Android API 8+: android.util.Base64