| | |
| | | package com.hxh.spring.test; |
| | | |
| | | import com.yeshi.buwan.util.DESUtil; |
| | | import com.yeshi.buwan.util.FileUtil; |
| | | import org.junit.Test; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | public class DES { |
| | | @org.junit.Test |
| | | public void test1() { |
| | | String content = "iDp+mknN2urZPWPAdmBTv1ME3YqW7QwsJzQ3UJcF2YVWOKa55S9JLX9Y2szf7GuFiEGM418zI+M="; |
| | | System.out.println(DESUtil.decode(content)); } |
| | | @org.junit.Test |
| | | public void test1() { |
| | | |
| | | String st = "iDp+mknN2urZPWPAdmBTv1ME3YqW7QwsBUCzbtjAkAje04mhRA8Wv6RAdFDJIZmEp2WT2ZmB4yJ2drO/wgzaiw=="; |
| | | System.out.println(DESUtil.decode(st)); |
| | | } |
| | | |
| | | @Test |
| | | public void test2() throws IOException { |
| | | String text = FileUtil.readTxt("C:\\Users\\Administrator\\Desktop\\切片缓存\\新建文本文档.txt"); |
| | | System.out.println(DESUtil.decode(text)); |
| | | |
| | | } |
| | | } |