public static void main(String[] args) {
String keyStr = "root";
byte[] keys;
try {
keys = keyStr.getBytes("UTF-8");
System.out.println(Base64Utils.encodeToString(Arrays.copyOf(keys, 16)));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
生成16位的key(笔记)
猜你喜欢
转载自blog.csdn.net/qq_31362105/article/details/84989523
今日推荐
周排行