Skip to main content

check_encryption

Function check_encryption 

Source
pub fn check_encryption(bytes: &[u8]) -> Result<(), DecryptError>
Expand description

Whether the right password could decrypt this encrypted workbook, checked without one. An error names a scheme no password opens (RC4, rights management…) or damage, so callers can say so instead of asking for a password first.