public void setCurrentPasswordHashPassword ( String newPassword ) { this . passwordSalt = UUID . randomUUID ( ) . toString ( ) ; try { this . currentPasswordHash = pwm . makePassword ( new SecureUTF8String ( newPassword ) , masterPwdHashAccount , getPasswordSalt ( ) ) ; } catch ( Exception ignored ) { } setStorePasswordHash ( true ) ; }
This will salt and hash the password to store