SimpleHash.hash

Hashes the specified byte array using the given {@code salt} for the specified number of iterations.

@param bytes the bytes to hash @param salt the salt to use for the initial hash @param hashIterations the number of times the the {@code bytes} will be hashed (for attack resiliency). @return the hashed bytes. @throws UnknownAlgorithmException if the {@link #getAlgorithmName() algorithmName} is not available.

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

Meta