Skip to content

Instantly share code, notes, and snippets.

View matthewshannon's full-sized avatar

matthewshannon

View GitHub Profile
@matthewshannon
matthewshannon / OpcMultipartMd5Test.java
Created October 14, 2019 01:14
opc-multipart-md5 calculation / validation code in Java for validation of checksum returned from multipart object storage uploads
/**
* opc-multipart-md5 calculation code
* Matt Shannon / Oracle Corp.
* See https://gist.github.com/itemir/f5bc9fded6483cd79c89ebf4ca1cfd30 for opc-multipart-md5 calculation algorithm in python
*/
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;