add things

This commit is contained in:
2025-08-11 23:51:00 +02:00
parent 41eed05493
commit 4c8585781e
7 changed files with 239 additions and 11 deletions

View File

@@ -3,11 +3,14 @@ package main
import (
"context"
"flag"
"hash_utils/commands/base64"
"hash_utils/commands/bcrypt"
"hash_utils/commands/crc8"
"hash_utils/commands/md5"
"hash_utils/commands/sha1"
"hash_utils/commands/sha256"
"hash_utils/commands/sha512"
"hash_utils/commands/version"
"os"
"github.com/google/subcommands"
@@ -17,6 +20,7 @@ func main() {
subcommands.Register(subcommands.HelpCommand(), "help")
subcommands.Register(subcommands.FlagsCommand(), "help")
subcommands.Register(subcommands.CommandsCommand(), "help")
subcommands.Register(&version.VersionCmd{}, "help")
subcommands.Register(&md5.MD5Cmd{}, "unkeyed cryptographic hash functions")
subcommands.Register(&sha1.SHA1Cmd{}, "unkeyed cryptographic hash functions")
@@ -25,6 +29,10 @@ func main() {
subcommands.Register(&crc8.CRC8Cmd{}, "cyclic redundancy checks")
subcommands.Register(&bcrypt.BCryptCmd{}, "password hashing functions")
subcommands.Register(&base64.Base64Cmd{}, "other")
flag.Parse()
ctx := context.Background()