+
Skip to content

go-ctap/winhello

Repository files navigation

winhello

Go Reference Go

winhello is a Go library that provides bindings to the Windows WebAuthn API (Windows Hello), enabling authentication using Windows Hello biometrics or security keys in Go applications.

Features

  • Create and manage WebAuthn credentials.
  • Authenticate users with Windows Hello.
  • Support for WebAuthn extensions (hmac-secret, prf, credBlob, etc.)
  • cgo-free implementation (plain syscalls).
  • Windows Hello requires a window handle (hWnd) to work, hiddenwindow package allows making one without going into hassle with Windows API.

Method support

  • WebAuthNAuthenticatorGetAssertion
    • WebAuthNFreeAssertion
  • WebAuthNAuthenticatorMakeCredential
    • WebAuthNFreeCredentialAttestation
  • WebAuthNCancelCurrentOperation
  • WebAuthNDeletePlatformCredential
  • WebAuthNGetApiVersionNumber
  • WebAuthNGetCancellationId
  • WebAuthNGetErrorName
  • WebAuthNGetPlatformCredentialList
    • WebAuthNFreePlatformCredentialList
  • WebAuthNGetW3CExceptionDOMError
  • WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable

Installation

go get github.com/go-ctap/winhello

Usage

See a small example.

Requirements

  • Windows 10 or later
  • Go 1.24 or later
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载