123456789101112131415161718192021222324252627 |
- package com.hotent.im.encrypt;
- /******************************
- * Created by yanhongliang
- * 2019-06-04 11:00
- ******************************/
- public class EMain {
- public static void main(String[] args) {
- // String privateKey = "privateKey";
- //
- // Encrypt encrypt = new Encrypt();
- //
- // String str = "yhliang";
- //
- // String encodeJSON = encrypt.encodeJSON(str, privateKey);
- //
- // System.out.println("------加密------"+encodeJSON);
- // System.out.println("===============================");
- // System.out.println("------解密------"+encrypt.decodeJSON(encodeJSON, privateKey));
- }
- }
|