package com.hanserwei.airobot.utils; import org.jasypt.util.text.AES256TextEncryptor; public class EncryptorUtil { public static void main(String[] args) { AES256TextEncryptor textEncryptor = new AES256TextEncryptor(); textEncryptor.setPassword("password"); System.out.println(textEncryptor.encrypt("sk-xxxxxxxxxxxxxx")); } }