mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(encryption): do not log encrypted binary data (#1352)
This commit is contained in:
@ -142,6 +142,19 @@ where
|
||||
}
|
||||
*/
|
||||
|
||||
/// Strategy for Encryption
|
||||
#[derive(Debug)]
|
||||
pub struct EncryptionStratergy;
|
||||
|
||||
impl<T> Strategy<T> for EncryptionStratergy
|
||||
where
|
||||
T: AsRef<[u8]>,
|
||||
{
|
||||
fn fmt(value: &T, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
write!(fmt, "*** Encrypted {} of bytes ***", value.as_ref().len())
|
||||
}
|
||||
}
|
||||
|
||||
/// Client secret
|
||||
#[derive(Debug)]
|
||||
pub struct ClientSecret;
|
||||
|
||||
Reference in New Issue
Block a user