Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenKeyring/oak-keyring
/ functions
Functions
5,714 in github.com/OpenKeyring/oak-keyring
⨍
Functions
5,714
◇
Types & classes
509
↓ 6 callers
Function
detect_duplicate_passwords
Detect duplicate passwords using SHA-256 hash grouping. Returns groups of record IDs that share the same password. Only groups with 2+ members are ret
src/services/health.rs:42
↓ 6 callers
Function
detect_expired_records
Detect expired records based on `expires_at` field. No decryption needed — works directly on StoredRecord.
src/services/health.rs:131
↓ 6 callers
Function
detect_weak_passwords
Detect weak passwords among decrypted password entries. Returns UUIDs of records whose password strength is VeryWeak or Weak.
src/services/health.rs:25
↓ 6 callers
Method
download_raw
Low-level raw read for lock files and other arbitrary data. Returns Ok(None) if file does not exist.
src/cloud/storage.rs:353
↓ 6 callers
Method
error
(text: String)
src/tui/state/notification.rs:61
↓ 6 callers
Method
execute_export
Execute the export: collect records, serialize, encrypt, write. The `record_collector` closure fetches records from the vault, keeping the service de
src/services/import_export/service.rs:644
↓ 6 callers
Function
generate_memorable_password_with_options
( word_count: usize, separator: &str, capitalize: bool, )
src/crypto/password.rs:144
↓ 6 callers
Method
generate_recovery_words
Generate a fresh 24-word BIP39 recovery key and store in `recovery_words`.
src/tui/screens/onboarding/screen.rs:156
↓ 6 callers
Function
get_tag_by_name
Find a tag by name. Returns `None` if not found.
src/db/queries/tag.rs:109
↓ 6 callers
Method
go_back
Navigate back to the appropriate screen based on entry point.
src/tui/screens/import_export/screen.rs:117
↓ 6 callers
Method
handle_mouse
( &mut self, event: MouseEvent, ctx: &mut ScreenContext, )
src/tui/screens/onboarding/handlers.rs:34
↓ 6 callers
Function
hard_delete_record
Hard-delete a record (and cascading record_tags via FK).
src/db/queries/record.rs:426
↓ 6 callers
Function
init
Initialize tracing subscriber writing to a daily-rotating log file. Returns a `WorkerGuard` that must be held for the app's lifetime. Returns `None`
src/logging.rs:10
↓ 6 callers
Function
insert_health_state
Helper: insert a health state row for a record at a given version.
src/services/vault/record/tests.rs:2460
↓ 6 callers
Function
insert_state
Helper: insert a health state.
tests/integration/health_test.rs:193
↓ 6 callers
Method
is_unlocked
Check whether the vault is currently unlocked.
src/executor/mod.rs:291
↓ 6 callers
Function
key
(code: KeyCode)
src/tui/screens/key_recovery.rs:421
↓ 6 callers
Function
list_audit_entries_filtered
List audit entries with dynamic filtering and pagination. All filter parameters are optional; non-None parameters are combined with AND.
src/db/queries/audit.rs:52
↓ 6 callers
Function
lock
(harness: &mut Harness)
tests/integration/change_master_password_test.rs:132
↓ 6 callers
Function
make_detail_view_with_fields
Build a [`DetailViewData`] with Username, Password, and URL fields.
tests/integration/main_pipeline_test.rs:92
↓ 6 callers
Function
metadata_value
(conn: &Connection, key: &str)
src/db/migrations/m001_initial_test.rs:5
↓ 6 callers
Method
notes_text
Get the notes field text content as a String.
src/tui/state/form_state.rs:276
↓ 6 callers
Method
options
Available options for this dropdown.
src/tui/state/config_state/state.rs:93
↓ 6 callers
Function
parse_opvault
Parse an .opvault directory and return all non-trashed items.
src/services/import_export/parsers/opvault/parser.rs:14
↓ 6 callers
Method
prev_word
Move focus to the previous editable word (wraps around).
src/tui/screens/recovery_key.rs:102
↓ 6 callers
Method
record_pull_done
Records that a record has been successfully pulled from cloud.
src/sync/checkpoint.rs:84
↓ 6 callers
Function
render_batch_snapshot
( names: &[&str], total_count: usize, width: u16, height: u16, )
src/tui/screens/main/detail.rs:1986
↓ 6 callers
Function
render_screen
(screen: &SetPasswordScreen, width: u16, height: u16)
tests/snapshot_tests/screens/set_password_test.rs:12
↓ 6 callers
Function
render_set_password_buffer
(screen: &SetPasswordScreen, width: u16, height: u16)
src/tui/screens/set_password.rs:741
↓ 6 callers
Function
render_status_bar
(state: &StatusBarState)
tests/snapshot_tests/screens/status_bar_test.rs:12
↓ 6 callers
Method
restore_cache_on_failure
(self, cached_password: &mut Option<SecureStr>)
src/executor/sync.rs:322
↓ 6 callers
Method
restore_pull_only
Restores cloud state by pulling remote metadata and records only. This bypasses the SyncTask command loop so recovery never sends `TriggerSync` and n
src/services/sync.rs:235
↓ 6 callers
Method
restore_record
Restore a previously soft-deleted record. Sets `deleted = 0` and `deleted_at = NULL`. Writes an audit entry with operation `RecordRestore`. # Errors
src/services/vault/record/crud.rs:488
↓ 6 callers
Function
row_text
(buffer: &ratatui::buffer::Buffer, y: u16)
src/tui/screens/main/sidebar.rs:782
↓ 6 callers
Method
save_conflict_history
Save the current encrypted payload to password history during S2 sync conflict. This method is designed for the sync service (S2) to call when a conf
src/services/vault/history.rs:135
↓ 6 callers
Function
sensitive
(s: &str)
tests/snapshot_tests/screens/edit_record_test.rs:15
↓ 6 callers
Method
set_metadata
( &mut self, key: &str, value: &str, )
src/executor/sync.rs:230
↓ 6 callers
Function
setup_executor
()
src/executor/rotation.rs:368
↓ 6 callers
Function
setup_unlocked_sync_executor
(vault_dir: &TempDir)
tests/e2e/sync_lifecycle_test.rs:189
↓ 6 callers
Function
setup_vault
()
tests/integration/health_test.rs:160
↓ 6 callers
Method
shutdown
(self)
tests/integration/change_master_password_test.rs:85
↓ 6 callers
Function
soft_delete_record
Soft-delete a record: set `deleted = 1` and `deleted_at` to now.
src/db/queries/record.rs:407
↓ 6 callers
Function
sort
()
examples/sqlcipher_bench.rs:70
↓ 6 callers
Function
sort_sidebar_tags
Sort the sidebar tags according to the current sort order.
src/tui/screens/main/mod.rs:777
↓ 6 callers
Function
start_transition_kind
( state: &mut crate::tui::state::AppState, kind: crate::tui::state::animation::EffectKind, )
src/app/update.rs:31
↓ 6 callers
Function
switch_control
(enabled: bool)
src/tui/screens/config_screen/config/render.rs:606
↓ 6 callers
Method
switch_credential_type
Switch credential type (Create mode only).
src/tui/state/form_state.rs:400
↓ 6 callers
Function
switch_locale
Switch locale at runtime (called when user changes language in config).
src/tui/i18n/mod.rs:68
↓ 6 callers
Function
synthetic_credential_value
()
tests/e2e/sync_lifecycle_test.rs:37
↓ 6 callers
Method
tag_scroll_start_index
(&self)
src/tui/state/main_state/state.rs:211
↓ 6 callers
Method
tags_field_index
(&self)
src/tui/state/form_state.rs:660
↓ 6 callers
Function
test_path
Helper to create a dummy path for tests
src/errors/mapping/import_export.rs:193
↓ 6 callers
Function
test_payload
()
src/services/import_export/parsers/okb.rs:232
↓ 6 callers
Method
to_app_config
Convert the current form state back into an [`AppConfig`]. Fields not edited by the config screen (e.g. `rotation`) use their defaults.
src/tui/state/config_state/state.rs:615
↓ 6 callers
Method
toggle_current_visibility
Toggle visibility for the currently focused sensitive field.
src/tui/state/form_state.rs:515
↓ 6 callers
Method
toggle_favorite
Toggle the favorite status of a record. Updates only the `is_favorite` field — no version increment, no audit entry. # Errors - `VaultError::NotUnlo
src/services/vault/record/crud.rs:557
↓ 6 callers
Method
toggle_tags
Toggle tag section expand/collapse.
src/tui/state/main_state/state.rs:351
↓ 6 callers
Method
unlock
( &mut self, master_password: &crate::types::SecureStr, )
src/executor/mod.rs:553
↓ 6 callers
Method
update_search_query
Update the search query in search mode and reset cursor to end.
src/tui/state/list_state/state.rs:391
↓ 6 callers
Function
valid_export_password
()
src/services/import_export/tests.rs:471
↓ 6 callers
Function
valid_export_path
(dir: &tempfile::TempDir)
src/services/import_export/tests.rs:475
↓ 6 callers
Function
validate
(config: &AppConfig)
src/config/validation.rs:5
↓ 6 callers
Method
validate
(&self)
src/cloud/metadata.rs:65
↓ 6 callers
Function
validate_optional_len
( field: &'static str, value: Option<&str>, max: usize, )
src/types/record_limits.rs:104
↓ 6 callers
Function
vault_locked_message
()
src/app/update.rs:1037
↓ 6 callers
Function
write_system_audit
( executor: &mut CommandExecutor, operation: AuditOperation, detail: Option<&str>, )
src/executor/vault.rs:62
↓ 5 callers
Method
actual_version
Builder method: sets the actual version.
src/errors/context.rs:89
↓ 5 callers
Function
apply_config_changes
Apply runtime config changes that take effect immediately.
src/executor/config.rs:80
↓ 5 callers
Method
apply_downloaded_cloud_record
( &mut self, record: &crate::cloud::CloudRecord, )
src/executor/mod.rs:570
↓ 5 callers
Function
assert_badge_text_bg
( buffer: &ratatui::buffer::Buffer, y: u16, text: &str, expected_bg: ratatui::
src/tui/screens/main/sidebar.rs:822
↓ 5 callers
Function
assert_file_does_not_contain
(path: &Path, needle: &[u8])
tests/integration/sqlcipher_poc_test.rs:27
↓ 5 callers
Function
attach_tag
Attach a tag to a record. Idempotent (INSERT OR IGNORE).
src/db/queries/tag.rs:60
↓ 5 callers
Function
backend_text
(backend: &TestBackend)
tests/snapshot_tests/screens/config_test.rs:29
↓ 5 callers
Function
build_sync_vault_data
Builds a SyncVaultData snapshot from the current vault state. Reads local records, their sync status, the pending upload CloudRecords (with health me
src/executor/sync.rs:23
↓ 5 callers
Method
cancel_timer
Cancel the active auto-clear timer without clearing the clipboard.
src/services/clipboard.rs:360
↓ 5 callers
Method
check_conflict
Check if the current text conflicts with an existing tag name.
src/tui/state/tag_management.rs:130
↓ 5 callers
Function
click
(column: u16, row: u16)
src/tui/screens/create_record_test.rs:78
↓ 5 callers
Function
configure_google_drive_sync
(screen: &mut ConfigScreen)
tests/snapshot_tests/screens/config_test.rs:84
↓ 5 callers
Function
contains
(area: ratatui::layout::Rect, col: u16, row: u16)
src/tui/screens/onboarding/handlers.rs:12
↓ 5 callers
Function
count_scalar
(conn: &Connection, sql: &str)
src/db/queries/record.rs:362
↓ 5 callers
Function
create_login
(svc: &mut VaultService, name: &str, password: &str)
tests/integration/smoke_test.rs:59
↓ 5 callers
Function
create_test_metadata_with_records
( vault_token: &str, version: u64, records: Vec<(&str, u64)>, )
tests/sync_e2e_test.rs:65
↓ 5 callers
Function
create_test_storage
()
tests/sync_e2e_test.rs:23
↓ 5 callers
Function
create_valid_cloud_record
()
src/sync/conflict.rs:246
↓ 5 callers
Function
create_valid_cloud_record
()
tests/sync_conflict_test.rs:10
↓ 5 callers
Function
csv_mapping
Dynamic field mapping for CSV imports based on user-provided column names.
src/services/import_export/mapping.rs:314
↓ 5 callers
Function
ctrl
(ch: char)
src/tui/screens/create_record_test.rs:100
↓ 5 callers
Method
current_secret_value
Get the secret value of the currently focused sensitive field as a `SecureStr`. Returns `None` if the focused field is not a sensitive field. The retu
src/tui/state/form_state.rs:539
↓ 5 callers
Method
current_step_number
Current step number (1-based).
src/tui/screens/onboarding/screen.rs:210
↓ 5 callers
Function
decrypt_opdata01_b64
Decrypt opdata01 from a base64-encoded string.
src/services/import_export/parsers/opvault/crypto.rs:104
↓ 5 callers
Method
delay_for_attempt
Computes the delay for a given attempt number using exponential backoff with jitter. Formula: `delay = min(base_delay * multiplier^attempt, max_delay
src/sync/retry.rs:75
↓ 5 callers
Method
delete_metadata
Delete a metadata entry by key. Returns `Ok(())` whether the key existed or not (idempotent).
src/services/vault/metadata.rs:43
↓ 5 callers
Function
delete_record_health_state
Delete the health state for a single record. Returns `true` if a row was deleted, `false` if no row existed.
src/db/queries/health_state.rs:134
↓ 5 callers
Method
delete_record_health_state
Delete the health state for a single record. Used when a password or `expires_at` changes, invalidating the previous health evaluation.
src/services/vault/health_state.rs:52
↓ 5 callers
Function
derive_db_page_key
(kek: &[u8; 32])
src/crypto/hkdf.rs:40
↓ 5 callers
Function
derive_device_key
(kek: &[u8; 32], device_id: &str)
src/crypto/hkdf.rs:23
↓ 5 callers
Function
detail_field_kind_to_selector
Convert a [`DetailFieldKind`] to the corresponding [`FieldSelector`] for clipboard copy and field decryption commands.
src/tui/state/main_state/state.rs:2243
↓ 5 callers
Method
download_metadata
Downloads and deserializes cloud metadata. Routes through SyncTask channel so the state machine is aware of metadata reads (consistent with push_meta
src/services/sync.rs:427
↓ 5 callers
Function
encrypt_and_write_okb
Encrypt the export payload and write it to the output file atomically. The .okb binary format: ```text [4 bytes: version (u32 LE)] [16 bytes: salt] [
src/services/import_export/export.rs:138
↓ 5 callers
Method
enter_editing
Enter editing mode for the given record.
src/tui/state/sync_ui_state.rs:146
← previous
next →
501–600 of 5,714, ranked by callers