feat: v0.9.0, support secure editor

This commit is contained in:
2023-12-02 12:20:28 +08:00
parent 1e2f13e0b8
commit 9e36725908
6 changed files with 31 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ pub struct TinyEncryptMeta {
pub nonce: String,
pub file_length: u64,
pub file_last_modified: u64,
pub file_edit_count: Option<u64>,
pub compress: bool,
}
@@ -161,6 +162,7 @@ impl TinyEncryptMeta {
Ok(modified) => get_millis(&modified) as u64,
Err(_) => 0,
},
file_edit_count: None,
compress: enc_metadata.compress,
}
}