SimpleHash.this

Creates an {@code algorithmName}-specific hash of the specified {@code source} with no {@code salt} using a single hash iteration. <p/> This is a convenience constructor that merely executes <code>this( algorithmName, source, null, 1);</code>. <p/> Please see the {@link #SimpleHash(string algorithmName, Object source, Object salt, int numIterations) SimpleHashHash(algorithmName, Object,Object,int)} constructor for the types of Objects that may be passed into this constructor, as well as how to support further types.

@param algorithmName the {@link java.security.MessageDigest MessageDigest} algorithm name to use when performing the hash. @param source the object to be hashed. @throws hunt.shiro.codec.CodecException if the specified {@code source} cannot be converted into a byte array (byte[]). @throws UnknownAlgorithmException if the {@code algorithmName} is not available.

Meta