public static boolean checkPassword(String salt, String password, String plainPassword) {
        byte[] saltHex = EncodeKit.decodeHex(salt);
        byte[] hashPassword =
                DigestsKit.sha1(plainPassword.getBytes(), saltHex, EncodeKit.HASH_INTERATIONS);
        return StringUtils.equals(EncodeKit.encodeHex(hashPassword), password);
    }
public static boolean checkPassword(String salt, String password, String plainPassword) {
        byte[] saltHex = EncodeKit.decodeHex(salt);
        byte[] hashPassword =
                DigestsKit.sha1(plainPassword.getBytes(), saltHex, EncodeKit.HASH_INTERATIONS);
        return StringUtils.equals(EncodeKit.encodeHex(hashPassword), password);
    }
public static boolean checkPassword ( String salt , String password , String plainPassword ) { byte [ ] saltHex = EncodeKit . decodeHex ( salt ) ; byte [ ] hashPassword = DigestsKit . sha1 ( plainPassword . getBytes ( ) , saltHex , EncodeKit . HASH_INTERATIONS ) ; return StringUtils . equals ( EncodeKit . encodeHex ( hashPassword ) , password ) ; }
Check Password , salt, password, planpassword.

@param salt          salt
@param password      password.
@param plainPassword plain password.
@return true, in user.
Check Password salt password planpassword .