@Test public void base64() throws Exception { String keyStr = "12345678abcdefgh"; byte[] key = keyStr.getBytes(); System.out.println(key.length); System.out.println(new String(key)); System.out.println("base64(key)=" + RmCryptoHelper.encodeBase64(new String(key.toString()))); }
public static String encodeBase64(String value){ return Base64.getUrlEncoder().encodeToString(value.getBytes()); }
RmCryptoHelper { public static String encodeBase64(String value){ return Base64.getUrlEncoder().encodeToString(value.getBytes()); } }
RmCryptoHelper { public static String encodeBase64(String value){ return Base64.getUrlEncoder().encodeToString(value.getBytes()); }  }
RmCryptoHelper { public static String encodeBase64(String value){ return Base64.getUrlEncoder().encodeToString(value.getBytes()); }  static byte[] aesEncrypt(byte[] src, byte[] key); static byte[] aesDecrypt(byte[] src, byte[] key); static String digestPassword(String password, String seed); static String encryptAesBase64(String value); static String decryptAesBase64(String value); static String encodeBase64(String value); static String decodeBase64(String value); }
RmCryptoHelper { public static String encodeBase64(String value){ return Base64.getUrlEncoder().encodeToString(value.getBytes()); }  static byte[] aesEncrypt(byte[] src, byte[] key); static byte[] aesDecrypt(byte[] src, byte[] key); static String digestPassword(String password, String seed); static String encryptAesBase64(String value); static String decryptAesBase64(String value); static String encodeBase64(String value); static String decodeBase64(String value);  }