auth

package
v0.0.0-...-546ba10 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase32

func DecodeBase32(base32Str string) ([]byte, error)

DecodeBase32 decodes a Base32 string into a byte slice

func EncodeBase32

func EncodeBase32(data []byte) string

EncodeBase32 encodes a byte slice into a Base32 string without padding

func GenerateChainCode

func GenerateChainCode(passphrase string, combinedParts []byte) ([]byte, error)

GenerateChainCode generates a fingerprint (HMAC) by applying HMAC-SHA3-512 on the combined input data (passphrase + Base32 passkey).

func GenerateHMAC

func GenerateHMAC(data []byte, key []byte) ([]byte, error)

GenerateHMAC generates a keyed-hash message authentication code (HMAC) using SHA3-512.

func VerifyFingerPrint

func VerifyFingerPrint(Base32Passkey, passphrase string) (bool, error)

VerifyFingerPrint authenticates a user by comparing a generated fingerprint with a stored one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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