Where are encryption keys stored?

Encryption keys are stored per-file, encrypted using your operating system’s secure credential storage (macOS Keychain on a Mac). Keys never leave the main process and never touch disk in plaintext.