pub trait Decryptor:
Send
+ Sync
+ 'static {
// Required methods
fn decrypt(&self, ciphertext: &[u8]) -> Result<Vec<u8>, Error>;
fn describe(&self) -> String;
}Available on crate feature
decrypt only.Expand description
Turns the bytes of an encrypted config file into configuration text.
One implementation ships — age::Age — and this trait is
why there could be others. A program using SOPS, a KMS, or an internal
scheme implements this and installs it; nothing else in the crate changes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".