final String text = "你好 世界";
final Base64.Decoder decoder = Base64.getDecoder();
final Base64.Encoder encoder = Base64.getEncoder();
final byte[] textByte = text.getBytes("UTF-8");
final String encodedText = encoder.encodeToString(textByte);
System.out.println(encodedText);
System.out.println(new String(decoder.decode(encodedText), "UTF-8"));
String key = "123456789";
byte[] encode_bytes = EnDecoderUtil.DESEncrypt(key, text);
System.out.println(Base64.getEncoder().encodeToString(encode_bytes));
byte[] decode_bytes = EnDecoderUtil.DESDecrypt(key, encode_bytes);
System.out.println(new String(decode_bytes,StandardCharsets.UTF_8));
byte[] decode = Base64.getDecoder().decode("/M5qXTK2wdlYT8iOCiu5OQ==");
byte[] decrypt = EnDecoderUtil.DESDecrypt(key, decode);
System.out.println("EnDecoderUtil.DESDecrypt(key,bytes) = " + new String(decrypt,StandardCharsets.UTF_8));