Package org.jasypt.encryption.pbe.config

Examples of org.jasypt.encryption.pbe.config.EnvironmentPBEConfig


    }

    @Test
    public void passwordTest() throws IOException, InterruptedException {

        EnvironmentPBEConfig config = new EnvironmentPBEConfig();
        config.setAlgorithm("PBEWithMD5AndDES");
        config.setPasswordEnvName("MY_APP_PASSWORD");

        StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
        encryptor.setConfig(config);

        Properties props = new EncryptableProperties(encryptor);
View Full Code Here

TOP

Related Classes of org.jasypt.encryption.pbe.config.EnvironmentPBEConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.