package
0.0.0-20241109201159-16952c6bb013
Repository: https://github.com/grokloc/grokloc-apiserver.git
Documentation: pkg.go.dev
# Functions
Decrypt reverses Encrypt.
DerivePassword performs a one-way hash on a password using argon2.
EncodedSHA256 returns the encoded (base16) sha256sums.
Encrypt returns the hex-encoded AES symmetric encryption of s with key.
MakeKey returns a 32-len byte slice.
NewVersionKey creates a new VersionKey assuming current is a valid key in `keyMap`.
RandKey returns a new random key.
RandString is a RandKey wrapped in a hex-encoded sha256.
VerifyPassword returns true if guess is the same as the password forming `derived`.
# Constants
KeyLen is the encryption key length.
# Variables
No description provided by the author
ErrDigest signals a checksum mismatch.
No description provided by the author
ErrNonce signals a failure to construct the nonce.
# Structs
VersionKey maps key ids (as UUIDs) to key []byte and knows the current key id -> key []byte mapping.
# Type aliases
KeyMap is the data structure used to hold key ids (as UUIDs) -> key []byte.