public static byte[] hash(byte[] body){
  if (HASH_DIGEST != null) {
    return HASH_DIGEST.digest(body);
  }
 else {
    throw new EvernoteUtilException(EDAM_HASH_ALGORITHM + " not supported",new NoSuchAlgorithmException(EDAM_HASH_ALGORITHM));
  }
}

public static byte [ ] hash ( byte [ ] body ) { if ( HASH_DIGEST != null ) { return HASH_DIGEST . digest ( body ) ; } else { throw new EvernoteUtilException ( EDAM_HASH_ALGORITHM + " not supported" , new NoSuchAlgorithmException ( EDAM_HASH_ALGORITHM ) ) ; } }
returns an md5 checksum of the provided array of bytes .
