Documentation
¶
Overview ¶
Package identity provides age identity loading for writ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIdentity ¶
func GenerateIdentity() (*age.X25519Identity, error)
GenerateIdentity creates a new age identity and returns the key.
func LoadIdentities ¶
LoadIdentities loads age identities from standard locations. Searches in order:
- AGE_IDENTITY environment variable (comma-separated paths)
- ~/.config/age/keys.txt
- ~/.ssh/id_ed25519, ~/.ssh/id_rsa (SSH keys)
func LoadIdentitiesFromPaths ¶
LoadIdentitiesFromPaths loads identities from specific paths.
func ParseRecipients ¶
ParseRecipients parses age recipient strings (public keys).
func ToRecipient ¶
func ToRecipient(identity *age.X25519Identity) string
ToRecipient returns the public key (recipient) for an identity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.