starcrypto/hash.go

16 lines
443 B
Go
Raw Normal View History

2024-03-10 13:04:26 +08:00
package starcrypto
import "b612.me/starcrypto/hashx"
2024-03-10 13:04:26 +08:00
func SumAll(data []byte, method []string) (map[string][]byte, error) {
return hashx.SumAll(data, method)
2024-03-10 13:04:26 +08:00
}
func FileSum(filepath, method string, shell func(float64)) (string, error) {
return hashx.FileSum(filepath, method, shell)
2024-03-10 13:04:26 +08:00
}
func FileSumAll(filepath string, method []string, shell func(float64)) (map[string]string, error) {
return hashx.FileSumAll(filepath, method, shell)
2024-03-10 13:04:26 +08:00
}