pub struct ConnectionStringEncryption { /* private fields */ }Implementations§
Source§impl ConnectionStringEncryption
impl ConnectionStringEncryption
pub fn new() -> Self
pub fn with_salt(salt: [u8; 32]) -> Self
pub fn salt_base64(&self) -> String
pub fn from_salt_base64(salt_b64: &str) -> Result<Self, EncryptionError>
pub fn encrypt_connection_string( &self, plaintext: &str, password: &str, ) -> Result<String, EncryptionError>
pub fn decrypt_connection_string( &self, encrypted: &str, password: &str, ) -> Result<String, EncryptionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionStringEncryption
impl RefUnwindSafe for ConnectionStringEncryption
impl Send for ConnectionStringEncryption
impl Sync for ConnectionStringEncryption
impl Unpin for ConnectionStringEncryption
impl UnwindSafe for ConnectionStringEncryption
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