字符串转hex

1 2 public static String toHex(String text) throws Exception { 3 4 //将字符串转为GB2312数组 5 byte[] arr = text.getBytes("GB2312"); 6 7 //将数组转为16进制字符串 8 Strin
posted @ 2023-06-25 19:17  爱,诗意永存  阅读(497)  评论(0编辑  收藏  举报