mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Revert "增加Redis持久化内容"
This reverts commit 0da14f84965cf697a1e65ded6368cc5e5fa89cdd.
This commit is contained in:
parent
62dd420204
commit
8d1d795bd1
@ -12,7 +12,7 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
@ -1,5 +1,5 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
|
@ -27,7 +27,7 @@ public class DesDemo {
|
||||
byte[] result;
|
||||
try {
|
||||
result = DesDemo.encrypt(str.getBytes(), password);
|
||||
System.out.println("加密后:" + result);
|
||||
System.out.println("加密后:" + new String(result));
|
||||
byte[] decryResult = DesDemo.decrypt(result, password);
|
||||
System.out.println("解密后:" + new String(decryResult));
|
||||
} catch (UnsupportedEncodingException e2) {
|
||||
|
@ -28,9 +28,9 @@ public class RSADemo {
|
||||
System.out.println("-----------------------------------");
|
||||
byte[] encryptByPrivateKey = encryptByPrivateKey("123456".getBytes(), privateKey);
|
||||
byte[] encryptByPublicKey = encryptByPublicKey("123456", publicKey);
|
||||
System.out.println(encryptByPrivateKey);
|
||||
System.out.println(new String(encryptByPrivateKey));
|
||||
System.out.println("-----------------------------------");
|
||||
System.out.println(encryptByPublicKey);
|
||||
System.out.println(new String(encryptByPublicKey));
|
||||
System.out.println("-----------------------------------");
|
||||
String sign = sign(encryptByPrivateKey, privateKey);
|
||||
System.out.println(sign);
|
||||
@ -40,9 +40,9 @@ public class RSADemo {
|
||||
System.out.println("-----------------------------------");
|
||||
byte[] decryptByPublicKey = decryptByPublicKey(encryptByPrivateKey, publicKey);
|
||||
byte[] decryptByPrivateKey = decryptByPrivateKey(encryptByPublicKey, privateKey);
|
||||
System.out.println(decryptByPublicKey);
|
||||
System.out.println(new String(decryptByPublicKey));
|
||||
System.out.println("-----------------------------------");
|
||||
System.out.println(decryptByPrivateKey);
|
||||
System.out.println(new String(decryptByPrivateKey));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user