@Override
    public boolean matchesPassword(ByteSource plaintextBytes) {
        try {
            SimpleHash otherHash = new SimpleHash(this.getAlgorithmName(), plaintextBytes, this.getSalt(), this.getIterations());
            return this.equals(otherHash);
        } catch (IllegalArgumentException illegalArgumentException) {
            // cannot recreate hash. Do not log password.
            LOG.warn("Cannot recreate a hash using the same parameters.", illegalArgumentException);
            return false;
        }
    }
Returns the {@link java.security.MessageDigest MessageDigest} algorithm name to use when performing the hash.

@return the {@link java.security.MessageDigest MessageDigest} algorithm name to use when performing the hash.
crypto/hash/src/main/java/org/apache/shiro/crypto/hash/SimpleHash.java