magic-crypt 5.0.0

MagicCrypt is a Java/PHP/NodeJS/Rust library to encrypt/decrypt strings, files, or data, using Data Encryption Standard(DES) or Advanced Encryption Standard(AES) algorithms. It supports CBC block cipher mode, PKCS7 padding and 64, 128, 192 or 256-bits key length.
Documentation
macro_rules! impl_cipher_secret_traits {
    ($cipher:ident) => {
        impl core::fmt::Debug for $cipher {
            #[inline]
            fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
                f.debug_struct(stringify!($cipher)).finish_non_exhaustive()
            }
        }

        impl Drop for $cipher {
            #[inline]
            fn drop(&mut self) {
                zeroize::Zeroize::zeroize(&mut self.key);
                zeroize::Zeroize::zeroize(&mut self.iv);
            }
        }
    };
}

pub mod aes128;
pub mod aes192;
pub mod aes256;
pub mod des64;