Files
hash_utils/commands/bcrypt/bcrypt.go
2025-08-11 23:10:30 +02:00

35 lines
626 B
Go

package bcrypt
import (
"context"
"flag"
"github.com/google/subcommands"
)
type (
MD5Cmd struct {
file string
round int
}
)
func (*MD5Cmd) Name() string { return "bcrypt" }
func (*MD5Cmd) Synopsis() string { return "" }
func (*MD5Cmd) Usage() string {
return `Usage: hash_utils bcrypt
Options:
`
}
func (p *MD5Cmd) SetFlags(f *flag.FlagSet) {
f.StringVar(&p.file, "file", "", "get the checksum of a file")
f.IntVar(&p.round, "round", 12, "number of iteration")
}
func (p *MD5Cmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
return subcommands.ExitSuccess
}