fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/user/AES256Local.java
public static byte[] sha256(final byte[] dataParam) {
        if (dataParam == null || dataParam.length == 0) {
            return new byte[] {};
        }

        try {
            final MessageDigest digest = MessageDigest.getInstance("SHA-256");
            return digest.digest(dataParam);
        }
        //
        catch (final NoSuchAlgorithmException e) {
            throw new IllegalStateException(e);
        }
    }
public static byte[] sha256(final byte[] dataParam) {
        if (dataParam == null || dataParam.length == 0) {
            return new byte[] {};
        }

        try {
            final MessageDigest digest = MessageDigest.getInstance("SHA-256");
            return digest.digest(dataParam);
        }
        //
        catch (final NoSuchAlgorithmException e) {
            throw new IllegalStateException(e);
        }
    }
public static byte [ ] sha256 ( final byte [ ] dataParam ) { if ( dataParam == null || dataParam . length == 0 ) { return new byte [ ] { } ; } try { final MessageDigest digest = MessageDigest . getInstance ( "SHA-256" ) ; return digest . digest ( dataParam ) ; } // catch ( final NoSuchAlgorithmException e ) { throw new IllegalStateException ( e ) ; } }
Compute SHA256 digest from {@code dataParam}.

@param dataParam The data to SHA-256.
@return SHA256 digest.
Compute SHA256 digest from { @code dataParam } .