auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package auth hashes and verifies the uninstall password. Only the bcrypt hash is ever stored (by the scm package); the plaintext is verified in memory before any authorized teardown. This is the gate that makes uninstall require the parent/accountability-partner's password rather than just admin rights.

Index

Constants

View Source
const MinLength = 6

MinLength is the shortest password we accept at set time.

Variables

This section is empty.

Functions

func Hash

func Hash(plain string) (string, error)

Hash returns a salted bcrypt hash of the password.

func Verify

func Verify(hash, plain string) bool

Verify reports whether plain matches the stored bcrypt hash. It returns false for a malformed hash rather than erroring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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