-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aes加密解密工具兼容java端,dp工具问题修复。
- Loading branch information
Showing
8 changed files
with
432 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.liqi.myutils.demo; | ||
|
||
import com.liqi.utils.encoding.JToAAesEncryptor; | ||
|
||
/** | ||
* 模拟java端AES加密解密测试 | ||
* Created by LiQi on 2018/7/2. | ||
*/ | ||
|
||
public class JavaTest { | ||
public static final String KEY = "QQ:543945827----"; | ||
|
||
public static void main(String[] args) { | ||
try { | ||
String encryptContent = JToAAesEncryptor.encrypt(KEY, "加密内容"); | ||
System.out.print("加密出内容:" + encryptContent); | ||
|
||
|
||
String decryptContent = JToAAesEncryptor.decrypt(KEY, encryptContent); | ||
System.out.print("\n解密出内容:" + decryptContent); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.