public static byte[] encode(byte[] arr, boolean lineSep) {
		if (arr == null) {
			return null;
		}
		return lineSep ?
				java.util.Base64.getMimeEncoder().encode(arr) :
				java.util.Base64.getEncoder().encode(arr);
	}
@Test
	public void issuesI5QR4WTest(){
		String a = java.util.Base64.getEncoder().encodeToString("111".getBytes()); //java.util.Base64
		String b = Base64.encode("111"); //cn.hutool.core.codec.Base64

		assertEquals(a, b);
	}