Skip to content

navtoj/biometric-keychain

Repository files navigation

Biometric Keychain

Usage:
    get    <namespace> <key>
    set    <namespace> <key> <value> [--strict]
    delete <namespace> <key> [--strict]

Arguments:
    <namespace> A unique value used to prevent storage conflicts.
    <key>       The key to operate on.
    <value>     The value to store (only for 'set').
    --strict    Optional boolean flag (true/false). Defaults to false.
                 - For 'set': If the key already exists, the command will fail.
                 - For 'delete': If the key does not exist, the command will fail.

Examples:
    set    namespace key value
    set    namespace key value --strict
    get    namespace key
    delete namespace key
    delete namespace key --strict

Screenshot of Script in Terminal

Tip

Run chmod +x main.swift to fix zsh: permission denied: ./main.swift error.

About

Access macOS Keychain with Touch ID.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project