SimpleHash.hash

Hashes the specified byte array using the given {@code salt} for a single iteration.

@param bytes the bytes to hash @param salt the salt to use for the initial hash @return the hashed bytes @throws UnknownAlgorithmException if the configured {@link #getAlgorithmName() algorithmName} is not available.

  1. byte[] hash(byte[] bytes)
  2. byte[] hash(byte[] bytes, byte[] salt)
    class SimpleHash
    protected
    byte[]
    hash
    (
    byte[] bytes
    ,
    byte[] salt
    )
  3. byte[] hash(byte[] bytes, byte[] salt, int hashIterations)

Meta