@ ShellMethod ( key = "jasypt-list-algorithms" , value = "List alogrithms you can use with Jasypt for property encryption" ) public void listAlgorithms ( @ ShellOption ( value = { "includeBC" } , help = "Include Bouncy Castle provider" ) final boolean includeBC ) { if ( includeBC ) { if ( Security . getProvider ( BouncyCastleProvider . PROVIDER_NAME ) == null ) { Security . addProvider ( new BouncyCastleProvider ( ) ) ; } } else { Security . removeProvider ( BouncyCastleProvider . PROVIDER_NAME ) ; } val providers = Security . getProviders ( ) ; LOGGER . info ( "Loaded providers: " ) ; for ( val provider : providers ) { LOGGER . info ( "Provider: [{}] [{}]" , provider . getName ( ) , provider . getClass ( ) . getName ( ) ) ; } val pbeAlgos = AlgorithmRegistry . getAllPBEAlgorithms ( ) ; LOGGER . info ( "==== JASYPT Password Based Encryption Algorithms ====\n" ) ; for ( val pbeAlgo : pbeAlgos ) { LOGGER . info ( pbeAlgo . toString ( ) ) ; } }
List algorithms you can use Jasypt .