@Override
    public SimpleHash fromString(String format) {
        Hash hash = new Shiro1CryptFormat().parse(format);

        if (!(hash instanceof SimpleHash)) {
            throw new IllegalArgumentException("formatted string was not a simple hash: " + format);
        }

        return (SimpleHash) hash;
    }
Creates a hash provider for salt (+pepper) and Hash-based KDFs, i.e. where the algorithm name
is a SHA algorithm or similar.

@since 2.0
crypto/hash/src/main/java/org/apache/shiro/crypto/hash/SimpleHashProvider.java