Skip to content

Commit 8d1d795

Browse files
committed
Revert "增加Redis持久化内容"
This reverts commit 0da14f8.
1 parent 62dd420 commit 8d1d795

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

数据结构与算法/source code/securityAlgorithm/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<attribute name="maven.pomderived" value="true"/>
1313
</attributes>
1414
</classpathentry>
15-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
1616
<attributes>
1717
<attribute name="maven.pomderived" value="true"/>
1818
</attributes>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
eclipse.preferences.version=1
2-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3-
org.eclipse.jdt.core.compiler.compliance=1.8
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3+
org.eclipse.jdt.core.compiler.compliance=1.5
44
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5-
org.eclipse.jdt.core.compiler.source=1.8
5+
org.eclipse.jdt.core.compiler.source=1.5

数据结构与算法/source code/securityAlgorithm/src/main/java/com/snailclimb/ks/securityAlgorithm/DesDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String args[]) {
2727
byte[] result;
2828
try {
2929
result = DesDemo.encrypt(str.getBytes(), password);
30-
System.out.println("加密后:" + result);
30+
System.out.println("加密后:" + new String(result));
3131
byte[] decryResult = DesDemo.decrypt(result, password);
3232
System.out.println("解密后:" + new String(decryResult));
3333
} catch (UnsupportedEncodingException e2) {

数据结构与算法/source code/securityAlgorithm/src/main/java/com/snailclimb/ks/securityAlgorithm/RSADemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public static void main(String[] args) throws Exception {
2828
System.out.println("-----------------------------------");
2929
byte[] encryptByPrivateKey = encryptByPrivateKey("123456".getBytes(), privateKey);
3030
byte[] encryptByPublicKey = encryptByPublicKey("123456", publicKey);
31-
System.out.println(encryptByPrivateKey);
31+
System.out.println(new String(encryptByPrivateKey));
3232
System.out.println("-----------------------------------");
33-
System.out.println(encryptByPublicKey);
33+
System.out.println(new String(encryptByPublicKey));
3434
System.out.println("-----------------------------------");
3535
String sign = sign(encryptByPrivateKey, privateKey);
3636
System.out.println(sign);
@@ -40,9 +40,9 @@ public static void main(String[] args) throws Exception {
4040
System.out.println("-----------------------------------");
4141
byte[] decryptByPublicKey = decryptByPublicKey(encryptByPrivateKey, publicKey);
4242
byte[] decryptByPrivateKey = decryptByPrivateKey(encryptByPublicKey, privateKey);
43-
System.out.println(decryptByPublicKey);
43+
System.out.println(new String(decryptByPublicKey));
4444
System.out.println("-----------------------------------");
45-
System.out.println(decryptByPrivateKey);
45+
System.out.println(new String(decryptByPrivateKey));
4646

4747
}
4848

0 commit comments

Comments
 (0)