public String encode ( CharSequence rawPassword ) { String salt = PREFIX + this . saltGenerator . generateKey ( ) + SUFFIX ; return digest ( salt , rawPassword ) ; }
Encodes the rawPass using a MessageDigest . If a salt is specified it will be merged with the password before encoding .