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

org.bdware.irp.crypto.Base64JavaUtilsImpl Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package org.bdware.irp.crypto;


import java.util.Base64;

public class Base64JavaUtilsImpl implements ByteStringCodec {

    static final Base64.Encoder encoder = Base64.getEncoder();
    static final Base64.Decoder decoder = Base64.getDecoder();

    @Override
    public String encodeToString(byte[] bytes) {
        return encoder.encodeToString(bytes);
    }

    @Override
    public byte[] decodeFromString(String str) {
        return decoder.decode(str);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy