pub struct ClientSecretEncryption { /* private fields */ }Implementations§
Source§impl ClientSecretEncryption
impl ClientSecretEncryption
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_client_secret( &self, plaintext: &str, password: &str, ) -> Result<String, EncryptionError>
pub fn decrypt_client_secret( &self, encrypted: &str, password: &str, ) -> Result<String, EncryptionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientSecretEncryption
impl RefUnwindSafe for ClientSecretEncryption
impl Send for ClientSecretEncryption
impl Sync for ClientSecretEncryption
impl Unpin for ClientSecretEncryption
impl UnwindSafe for ClientSecretEncryption
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