Skip to content

Commit d607122

Browse files
committed
add flow
1 parent cba6778 commit d607122

File tree

1 file changed

+2
-4
lines changed
  • springboot-starter-security/src/main/java/com/codingapi/springboot/security/crypto

1 file changed

+2
-4
lines changed

springboot-starter-security/src/main/java/com/codingapi/springboot/security/crypto/AESTools.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package com.codingapi.springboot.security.crypto;
22

33
import com.codingapi.springboot.framework.crypto.AES;
4+
import lombok.Getter;
45
import lombok.SneakyThrows;
56

67
import java.nio.charset.StandardCharsets;
78
import java.util.Base64;
89

910
public class AESTools {
1011

12+
@Getter
1113
private final static AESTools instance = new AESTools();
1214

1315
private AES aes;
@@ -19,10 +21,6 @@ void init(AES aes) {
1921
this.aes = aes;
2022
}
2123

22-
public static AESTools getInstance() {
23-
return instance;
24-
}
25-
2624
@SneakyThrows
2725
public String encode(String input) {
2826
return Base64.getEncoder().encodeToString(aes.encrypt(input.getBytes(StandardCharsets.UTF_8)));

0 commit comments

Comments
 (0)