diff options
Diffstat (limited to 'src/cipherstring.rs')
-rw-r--r-- | src/cipherstring.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cipherstring.rs b/src/cipherstring.rs index 7f9ce31..d8e27f0 100644 --- a/src/cipherstring.rs +++ b/src/cipherstring.rs @@ -70,7 +70,7 @@ impl CipherString { // the only difference between 4 and 6 is the HMAC256 signature appended at the end // https://github.com/bitwarden/jslib/blob/785b681f61f81690de6df55159ab07ae710bcfad/src/enums/encryptionType.ts#L8 // format is: <cipher_text_b64>|<hmac_sig> - let contents = contents.split("|").next().unwrap(); + let contents = contents.split('|').next().unwrap(); let ciphertext = base64::decode(contents) .context(crate::error::InvalidBase64)?; Ok(Self::Asymmetric { ciphertext }) |