File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/abosk/openaiclient/config Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22
33import org .jasypt .encryption .StringEncryptor ;
44import org .jasypt .encryption .pbe .StandardPBEStringEncryptor ;
5+ import org .springframework .beans .factory .annotation .Value ;
56import org .springframework .context .annotation .Bean ;
67import org .springframework .context .annotation .Configuration ;
78
89@ Configuration
910public class EncryptorConfig {
1011
12+ @ Value ("${jasypt.encryptor.password}" )
13+ private String password ;
14+
1115 @ Bean (name = "jasyptStringEncryptor" )
1216 public StringEncryptor stringEncryptor () {
1317 StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor ();
18+ encryptor .setPassword (password );
1419 encryptor .setAlgorithm ("PBEWithMD5AndTripleDES" );
1520 encryptor .setStringOutputType ("base64" );
1621 return encryptor ;
You can’t perform that action at this time.
0 commit comments