更新后台端口
This commit is contained in:
parent
c3ecdee6d7
commit
1171c4332a
@ -5,12 +5,21 @@ import java.security.NoSuchAlgorithmException;
|
||||
|
||||
/**
|
||||
* SHA加密解密工具
|
||||
*
|
||||
* @author tajochen
|
||||
*/
|
||||
public class EncryptDecryptUtil {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String password = "zzpassword";
|
||||
String salt = "2b1d8a197c24eb36";
|
||||
String encrypt = encry256(password + salt);
|
||||
System.out.println("encrypt = " + encrypt);
|
||||
}
|
||||
|
||||
/**
|
||||
* SHA-256加密
|
||||
*
|
||||
* @param strText
|
||||
* @return
|
||||
*/
|
||||
@ -20,6 +29,7 @@ public class EncryptDecryptUtil {
|
||||
|
||||
/**
|
||||
* SHA-512加密
|
||||
*
|
||||
* @param strText
|
||||
* @return
|
||||
*/
|
||||
@ -29,6 +39,7 @@ public class EncryptDecryptUtil {
|
||||
|
||||
/**
|
||||
* 基础SHA加密
|
||||
*
|
||||
* @param strText
|
||||
* @param strType
|
||||
* @return
|
||||
@ -55,8 +66,7 @@ public class EncryptDecryptUtil {
|
||||
}
|
||||
// 得到返回的结果
|
||||
strResult = strHexString.toString();
|
||||
}
|
||||
catch (NoSuchAlgorithmException e) {
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
server.port = 6801
|
||||
server.port = 6101
|
||||
|
||||
## 数据源配置
|
||||
spring.datasource.url = jdbc:postgresql://118.24.27.47:5432/fire_point
|
||||
|
Loading…
Reference in New Issue
Block a user