feat: set default encryption algorithm

This commit is contained in:
2023-09-30 22:55:03 +08:00
parent b656d49933
commit 015fa42ca7
3 changed files with 6 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ pub const ENC_AES256_GCM_P256: &str = "aes256-gcm-p256";
pub const TINY_ENC_FILE_EXT: &str = ".tinyenc";
pub const TINY_ENC_CONFIG_FILE: &str = "~/.tinyencrypt/config-rs.json";
pub const TINY_ENC_AES_GCM: &str = "AES/GCM";
pub const TINY_ENC_MAGIC_TAG: u16 = 0x01;
pub fn require_tiny_enc_file_and_exists(path: impl AsRef<Path>) -> XResult<()> {