crypto

package
v0.0.0-...-1ea1845 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenHash

func TokenHash(token string) string

TokenHash returns the fixed-length SHA-256 digest used for stored bearer tokens.

func TokensEqual

func TokensEqual(a, b string) bool

TokensEqual compares two tokens in constant time to prevent timing attacks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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