암호화
This commit is contained in:
+8
-1
@@ -9,14 +9,21 @@ plugins {
|
|||||||
group 'com.eactive'
|
group 'com.eactive'
|
||||||
version '4.5.1-SNAPSHOT'
|
version '4.5.1-SNAPSHOT'
|
||||||
|
|
||||||
|
def nexusUrl = "https://nexus.eactive.synology.me:8090"
|
||||||
|
|
||||||
def springVersion = "5.3.27"
|
def springVersion = "5.3.27"
|
||||||
//def quartzVersion = "2.2.1"
|
//def quartzVersion = "2.2.1"
|
||||||
def queryDslVersion = "5.0.0"
|
def queryDslVersion = "5.0.0"
|
||||||
def hibernateVersion = "5.6.15.Final"
|
def hibernateVersion = "5.6.15.Final"
|
||||||
|
|
||||||
def nexusUrl = "https://nexus.eactive.synology.me:8090"
|
|
||||||
def generatedJavaDir = "$buildDir/generated/java"
|
def generatedJavaDir = "$buildDir/generated/java"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url "${nexusUrl}/repository/maven-public/"
|
||||||
|
allowInsecureProtocol = true
|
||||||
|
}
|
||||||
|
}
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion = JavaLanguageVersion.of(8)
|
languageVersion = JavaLanguageVersion.of(8)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class AES256Cipher {
|
|||||||
//private static final Logger logger = Logger.getLogger(AES256Cipher.class);
|
//private static final Logger logger = Logger.getLogger(AES256Cipher.class);
|
||||||
static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
|
static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
|
||||||
private static final String IV_STRING = "A-16-Byte-String";
|
private static final String IV_STRING = "A-16-Byte-String";
|
||||||
|
|
||||||
public static String encrypt(String inPlainText, String inKey)
|
public static String encrypt(String inPlainText, String inKey)
|
||||||
throws NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, InvalidAlgorithmParameterException, NoSuchPaddingException {
|
throws NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, InvalidAlgorithmParameterException, NoSuchPaddingException {
|
||||||
|
|
||||||
@@ -183,6 +183,8 @@ public class AES256Cipher {
|
|||||||
|
|
||||||
return resultData;
|
return resultData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user