feat: encrypt works

This commit is contained in:
2022-07-24 17:55:08 +08:00
parent 0b97850f65
commit ee0c59bbcf
6 changed files with 151 additions and 74 deletions

View File

@@ -4,8 +4,8 @@ use rust_util::{debugging, information, opt_result, simple_error, success, XResu
pub const DEFAULT_MASTER_KEY_VERIFICATION_KEY: &'static str = "__master_verification_key";
pub struct Key {
name: String,
encrypted_key: String,
pub name: String,
pub encrypted_key: String,
}
pub fn open_db(db: &str) -> XResult<Connection> {