//import org.jasypt.encryption.StringEncryptor;
//import org.junit.jupiter.api.Test;
//import org.junit.jupiter.api.extension.ExtendWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit.jupiter.SpringExtension;
//
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration
//public class TestEnc {
//
//    @Autowired
//    private StringEncryptor encryptor;
//
//    @Test
//    public void encrypt() {
//        String url = encryptor.encrypt("jdbc:mysql://localhost:3306/study_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai");
//        String name = encryptor.encrypt("root");
//        String password = encryptor.encrypt("123456");
//        System.out.println("database url: " + url);
//        System.out.println("database username: " + name);
//        System.out.println("database password: " + password);
//    }
//}
