inno 0.5.0

Library for reading Inno Setup executables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub enum Encryption {
    #[default]
    Plaintext,
    Arc4Md5,
    Arc4Sha1,
    XChaCha20,
}

impl Encryption {
    /// Returns `true` if there is no encryption.
    #[must_use]
    #[inline]
    pub const fn is_plaintext(self) -> bool {
        matches!(self, Self::Plaintext)
    }
}