public static String getChecksum ( final Algorithm algorithm , final byte [ ] ... byteArrays ) throws NoSuchAlgorithmException { StringBuilder sb = new StringBuilder ( ) ; for ( byte [ ] byteArray : byteArrays ) { sb . append ( getChecksum ( byteArray , algorithm . getAlgorithm ( ) ) ) ; } return sb . toString ( ) ; }
Gets the checksum from the given byte arrays with the given algorithm