# Enum `kurogane::CredentialStorage`

```rust
pub enum CredentialStorage {
    System,
    Basic,
}
```

Backend used to protect cookies and saved passwords at rest.

Pass to App::credential_storage to control whether the runtime reaches for
the platform credential store (default = CredentialStorage::System).

## Variants

### `System`

```rust
System
```

Use the platform credential store.

Cookies and passwords are encrypted with a key held by the Keychain
(macOS), kwallet or gnome-keyring (Linux) or DPAPI (Windows).

Unsigned macOS builds prompt for Keychain access on every run because
they have no stable code identity, and Linux hosts without a keyring
daemon fall back to unencrypted storage on their own.

### `Basic`

```rust
Basic
```

Bypass the platform credential store.

Chromium protects data with a built-in fixed key instead, which is
obfuscation rather than encryption: anything readable by the process is
readable by anyone with access to the profile directory.

Suited to development, containers and CI, where the credential store is
either absent or prompts on every run. Not suited to profiles holding
data worth protecting.

## Trait implementations

- `impl Clone for CredentialStorage`
- `impl Copy for CredentialStorage`
- `impl Debug for CredentialStorage`
- `impl Default for CredentialStorage`
- `impl Eq for CredentialStorage`
- `impl PartialEq for CredentialStorage`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/credentials/backend.rs#L17
