package com.jiayue.ssi.config;

//import org.jasypt.encryption.StringEncryptor;
//import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
//import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;

/**
* jasypt配置类
*
* @author xsl
* @since 2023/04/25
*/
//@Configuration
public class EncryptorConfig {
//    @Bean("jasyptStringEncryptor")
//    public StringEncryptor jasyptStringEncryptor() {
//        PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
//        SimpleStringPBEConfig config = new SimpleStringPBEConfig();
//        config.setPassword("atpingan");
//        // 注释部分为配置默认
//        config.setAlgorithm("PBEWithMD5AndDES");
//        config.setIvGeneratorClassName("org.jasypt.iv.NoIvGenerator");
//        config.setPoolSize("1");
//        encryptor.setConfig(config);
//        return encryptor;
//    }
}
