keyring-wincred
1 Construction
2 Credential operations
3 Storage and security
9.3

keyring-wincred🔗ℹ

turlamai

 (require keyring/backend/wincred) package: keyring-wincred

Native Windows Credential Manager backend for the Racket keyring interface. No external executable is needed.

1 Construction🔗ℹ

(require keyring (prefix-in win: keyring/backend/wincred))
(define kr (win:make-keyring #:namespace "example"))

The constructor accepts an optional nonempty string namespace, defaulting to "default". Construction on another operating system raises a backend load error.

2 Credential operations🔗ℹ

(set-password! "service" "account" #"synthetic" #:keyring kr)
(get-password "service" "account" #:keyring kr)
(delete-password! "service" "account" #:keyring kr)

Values are byte strings of at most 2560 bytes. Missing entries return #f; deletion of a missing entry succeeds. Native failures raise backend errors without including credential values.

3 Storage and security🔗ℹ

Generic credentials are persisted locally for the current Windows user. Versioned target names encode namespace, service and account as separate lowercase hexadecimal UTF-8 fields, preserving case-sensitive identity. This is logical separation, not an access-control boundary between processes running under the same Windows account.

Legacy credential migration is the application’s responsibility. Keep the previous credential until read-back verification and rollback testing have succeeded. The development storage format is not yet a released compatibility contract.