加解密

This commit is contained in:
mashuai 2024-08-01 09:03:01 +08:00
parent 1497d38315
commit 50469522ef
1 changed files with 0 additions and 6 deletions

View File

@ -25,12 +25,6 @@ public class SgzbGatewayApplication implements CommandLineRunner {
private StringEncryptor encryptor; private StringEncryptor encryptor;
@Override @Override
public void run(String... args) throws Exception { public void run(String... args) throws Exception {
String mysqlNm = encrypt("root" );
String mysqlPs = encrypt("Bonus@admin123!" );
String redis = encrypt("Dszbns@Redis123!" );
System.err.println( "mysqlNm原始明文密码加密后的结果为" + mysqlNm );
System.err.println( "mysqlPs原始明文密码加密后的结果为" + mysqlPs );
System.err.println( "redis原始明文密码加密后的结果为" + redis );
} }