Skip to main content

store_secret

Function store_secret 

Source
pub fn store_secret(_key: &str, _value: &str) -> Result<()>
Expand description

Store a secret securely in the system keyring.

Platform behavior:

  • macOS: Stores in login keychain
  • Linux: Stores in Secret Service (GNOME Keyring/KWallet)
  • Windows: Stores in Windows Credential Manager

If the secure-storage feature is not enabled or the system doesn’t support keychain, this will return Ok(()) without storing anything.