avoid changing id manually

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-07-30 07:09:31 +08:00
parent 040267e7f2
commit 53f496c0e4
4 changed files with 54 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ pub fn encrypt_vec_or_original(v: &[u8], version: &str) -> Vec<u8> {
v.to_owned()
}
// String: password
// Vec<u8>: password
// bool: whether decryption is successful
// bool: whether should store to re-encrypt when load
pub fn decrypt_vec_or_original(v: &[u8], current_version: &str) -> (Vec<u8>, bool, bool) {