Skip to content

downeast/treehash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treehash

Implements the SHA256 tree hash algorithm (as used by aws glacier)

Installation

Download and install :

$ go get github.com/downeast/treehash

Add it to your code :

import "github.com/downeast/treehash"

Use

file, _ := os.Open("filename")
th := treehash.New()
io.Copy(th, file)
checksum := fmt.Sprintf("%x", th.Sum(nil))

About

A SHA256 Tree Hash implementation in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages