pub struct StringCrypter<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default = Crc32cHasher> { /* private fields */ }Expand description
StringCrypter是ciftl自己实现的一个文本加密器
Implementations§
Source§impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> StringCrypter<CA, HR>
impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> StringCrypter<CA, HR>
pub fn rand_iv(n: usize) -> ByteVector
pub fn generate_key_from_password(password: &str, n: usize) -> ByteVector
Trait Implementations§
Source§impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> Default for StringCrypter<CA, HR>
impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> Default for StringCrypter<CA, HR>
Source§impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> StringCrypterTrait for StringCrypter<CA, HR>
impl<CA: CipherAlgorithmTrait + IVKeyNewTrait, HR: HasherTrait + Default> StringCrypterTrait for StringCrypter<CA, HR>
Auto Trait Implementations§
impl<CA, HR> Freeze for StringCrypter<CA, HR>
impl<CA, HR> RefUnwindSafe for StringCrypter<CA, HR>where
CA: RefUnwindSafe,
HR: RefUnwindSafe,
impl<CA, HR> Send for StringCrypter<CA, HR>
impl<CA, HR> Sync for StringCrypter<CA, HR>
impl<CA, HR> Unpin for StringCrypter<CA, HR>
impl<CA, HR> UnwindSafe for StringCrypter<CA, HR>where
CA: UnwindSafe,
HR: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more