/* package cn.com.goldenwater.dcproj.utils; import com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor; import org.jasypt.encryption.StringEncryptor; import org.springframework.core.env.StandardEnvironment; public class JasyptUtil { public static void main(String[] arrg){ System.setProperty("jasypt.encryptor.password", "gwSldc"); StringEncryptor stringEncryptor = new DefaultLazyEncryptor(new StandardEnvironment()); System.out.println("加密: " + stringEncryptor.encrypt("root")); System.out.println("加密: "+ stringEncryptor.encrypt("root")); System.out.println("解密: " + stringEncryptor.decrypt("jyADwRZ3pMQxXcla1ei65g==")); } } */