public static byte[] encode(byte[] pArray) {
        return java.util.Base64.getEncoder().encode(pArray);
    }
Encodes a byte[] containing binary data, into a byte[] containing characters in the Base64 alphabet.

@param pArray a byte array containing binary data
@return A byte array containing only Base64 character data
lang/src/main/java/org/apache/shiro/lang/codec/Base64.java