Skip to content

Asynchronously computes the MD5 hash of blobs in Azure Blob Storage to maximize performance. Azure blob MD5 computes the hash of several blobs concurrently. Local files are also supported so that you can use this functionality as a validation step for your data transfers to Azure blob storage.

License

Notifications You must be signed in to change notification settings

giventocode/azure-blob-md5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Blob MD5

Go Report Card

Asynchronously computes the MD5 hash of blobs in Azure Blob Storage to maximize performance. Azure blob MD5 computes the hash of several blobs concurrently. Local files are also supported so that you can use this functionality as a validation step for your data transfers to Azure blob storage.

Getting Started

Pre-requisites

Install Go

Get and build from the source.

go get github.com/giventocode/azure-blob-md5
go build -o bmd5 github.com/giventocode/azure-blob-md5

Set the credentials to the storage account via the environment variables.

export ACCOUNT_NAME=<YOUR_ACCOUNT_NAME>
export ACCOUNT_KEY=<YOUR_ACCOUNT_KEY>

Examples

The following calculates the MD5 hash for the blob file in container docs

./bmd5 -b file -c docs

You can use the -m option to set the Content-MD5 property of the blob after the MD5 hash is calculated.

./bmd5 -m -b file -c docs

Calculating the MD5 hash for local files is supported.

./bmd5 -f file

Blobs and local files can be set and MD5 hashes will be calculated for both sources. The target scenario is validation of a data uploads.

./bmd5 -f file -b file -c docs

About

Asynchronously computes the MD5 hash of blobs in Azure Blob Storage to maximize performance. Azure blob MD5 computes the hash of several blobs concurrently. Local files are also supported so that you can use this functionality as a validation step for your data transfers to Azure blob storage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages