public static String getSha(byte[] bytes)
    {
        Check.notNull(bytes);

        final StringBuilder builder = new StringBuilder(MAX_LENGTH);
        for (final byte b : SHA512.digest(bytes))
        {
            builder.append(0xFF & b);
        }
        return builder.toString();
    }
public static String getSha ( byte [ ] bytes ) { Check . notNull ( bytes ) ; final StringBuilder builder = new StringBuilder ( MAX_LENGTH ) ; for ( final byte b : SHA512 . digest ( bytes ) ) { builder . append ( 0xFF & b ) ; } return builder . toString ( ) ; }
Get the SHA-256 signature of the input bytes.

@param bytes The input bytes (must not be <code>null</code>).
@return The bytes signature.
@throws LionEngineException If invalid arguments.