diff --git a/src/encryption/spiral.rs b/src/encryption/spiral.rs index 432eb24..25080cb 100644 --- a/src/encryption/spiral.rs +++ b/src/encryption/spiral.rs @@ -40,7 +40,7 @@ pub fn encrypt(data: String) -> String { /// - `data` 待解密的内容 pub fn decrypt(data: String) -> Result { if !data.starts_with("[") || data.len() <= 21 { - return Err(SpiralCipherError::CorruptedCipherData); + return Ok(data); } let data = data[1..].to_string(); let key_seed = data[0..20].to_string();