hashing

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hashing provides shared logic for the md5sum / sha256sum / sha512sum applets. Each applet is a thin wrapper that picks a hash constructor and a default name, then delegates to Run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(algo string) func() hash.Hash

New returns a hash constructor by algorithm name.

func Run

func Run(cmdName, algo string, argv []string) int

Run is the shared Main implementation. cmdName is the applet name (used for diagnostics); algo is one of "md5", "sha256", "sha512".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL