winhello

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package winhello implements a keyring backend backed by Windows Hello.

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("the specified item could not be found in the keyring")

ErrKeyNotFound is returned by Get when the item is not on the keyring.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend stores items in the Windows Credential Manager, encrypted with a Windows Hello protected key.

func New

func New(serviceName string) (*Backend, error)

New creates a new Windows Hello backend for the given service name.

func (*Backend) Get

func (b *Backend) Get(key string) ([]byte, error)

Get returns the decrypted data for the given key, or ErrKeyNotFound.

func (*Backend) Keys

func (b *Backend) Keys() ([]string, error)

Keys returns a slice of all keys stored on the keyring.

func (*Backend) Remove

func (b *Backend) Remove(key string) error

Remove deletes the item with the matching key.

func (*Backend) Set

func (b *Backend) Set(key string, data []byte) error

Set encrypts and stores data under the given key.

Jump to

Keyboard shortcuts

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