passwd

command
v1.41.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

README

passwd

A standalone password hashing tool for buildah tests.

Purpose

This tool generates bcrypt password hashes and is used exclusively for testing purposes. It was previously part of the main buildah command as a hidden passwd subcommand but has been split out into a separate tool to:

  • Keep the main buildah command clean of test-only functionality
  • Allow tests to use password hashing independently
  • Follow the same pattern as other test tools like imgtype

Usage

passwd <password>

Example

$ passwd testpassword
$2a$10$ZamosnV9dfpTJn4Uk.Xix.5nwbKNiLw8xpP/6g2z83jhY.WKZuRjG

The tool outputs a bcrypt hash of the input password to stdout, which can be used in test scenarios that require password hashing (such as setting up test registries with HTTP basic authentication).

Building

The tool is built automatically when running make all or can be built individually with:

make bin/passwd

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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