pub struct ConfigEncryption { /* private fields */ }Expand description
配置加密器:使用 XOR + Base64 对敏感配置值进行对称加密
适用场景:数据库密码、API Key 等敏感配置不应明文存储在配置文件中。
加密格式:ENC(base64(xor(plaintext, key)))
Implementations§
Auto Trait Implementations§
impl Freeze for ConfigEncryption
impl RefUnwindSafe for ConfigEncryption
impl Send for ConfigEncryption
impl Sync for ConfigEncryption
impl Unpin for ConfigEncryption
impl UnsafeUnpin for ConfigEncryption
impl UnwindSafe for ConfigEncryption
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