java - No such algorithm - bcrypt -


i'm using spring security bcrypt password security.

it's in grails application. when application starts get:

"no such algorithm [bcrypt]"

i traced error code in spring security:

    try {         return messagedigest.getinstance(algorithm);     }     catch (nosuchalgorithmexception e) {         throw new illegalargumentexception("no such algorithm [" + algorithm + "]");     } 

how install bcrypt java security?

i'm running oracle jdk 1.8.0_73-b02 on centos 7.

the problem code:

messagedigestpasswordencoder(messagedigestpasswordencoder, conf.password.algorithm) {     encodehashasbase64 = conf.password.encodehashasbase64     iterations = conf.password.hash.iterations } 

by default grails 3 spring-core plugin configures conf.password.algorithm="bcrypt"

i thought had overridden in config in config.groovy. in grails 3 config needs moved application.groovy


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -