G
YouTube TikTok Games
Skip to content

About

Hash a directory path

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

go-hashdir

Simple package for hashing directory strings

package main

import (
	"fmt"
	hashdir "github.com/sger/go-hashdir"
)

func main() {

	// Choose sha1 or sha256 hashing algorithms
	hash, err := hashdir.Create("test/directory", "md5")
	fmt.Println(hash) // returns d41d8cd98f00b204e9800998ecf8427e
}

Testing

$ go test -v

Author

Spiros Gerokostas

License

go-hashdir is available under the MIT license. See the LICENSE file for more info.

About

Hash a directory path

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages