Struct magic_crypt::MagicCrypt [−][src]
pub struct MagicCrypt { /* fields omitted */ }
Expand description
This struct can help you encrypt or decrypt data in a quick way.
Implementations
Trait Implementations
fn encrypt_reader_to_writer2<N: ArrayLength<u8> + PartialDiv<U16> + IsGreaterOrEqual<U16, Output = True>>(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
fn decrypt_bytes_to_bytes<T: ?Sized + AsRef<[u8]>>(
&self,
bytes: &T
) -> Result<Vec<u8>, MagicCryptError>
fn decrypt_reader_to_writer2<N: ArrayLength<u8> + PartialDiv<U16> + IsGreaterOrEqual<U16, Output = True> + Add<B1>>(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError> where
<N as Add<B1>>::Output: ArrayLength<u8>,
fn encrypt_reader_to_writer(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
fn decrypt_base64_to_string<S: AsRef<str>>(
&self,
base64: S
) -> Result<String, MagicCryptError>
fn decrypt_base64_to_bytes<S: AsRef<str>>(
&self,
base64: S
) -> Result<Vec<u8>, MagicCryptError>
fn decrypt_reader_to_writer(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
Auto Trait Implementations
impl RefUnwindSafe for MagicCrypt
impl Send for MagicCrypt
impl Sync for MagicCrypt
impl Unpin for MagicCrypt
impl UnwindSafe for MagicCrypt
Blanket Implementations
Mutably borrows from an owned value. Read more