Skip to content
Discussion options

You must be logged in to vote

If this helps - for us the key (pun intended) to everything was the keyring crate https://crates.io/crates/keyring

We setup stronghold in Tauri like this...

use rand::RngCore;
use std::fs;
use std::io::Write;
use tauri::Manager;
use tauri_plugin_stronghold;

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .setup(|app| {
            // Determine salt path
            let salt_path = app
                .path()
                .app_local_data_dir()
                .expect("could not resolve app local data path")
                .join("your-salt-file.txt");
            // Ensure the directory exists
            if let Some(parent_dir) = sal…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 58bits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant