fn new() -> Self {
        let cfg = EncryptionConfig::from_env().unwrap();
        let key = GenericArray::from_slice(
            cfg.key.as_bytes()
        );

        let cipher = Aes256GcmSiv::new(key);

        Self {
            cipher
        }
    }
/// use this struct to add encryption to a data vault
/// # Example
/// ```rust
/// use data_vault::encryption::traits::Encryption;
/// use data_vault::encryption::AesGcmSivEncryption;
/// let enc = AesGcmSivEncryption::new();
/// ```
use this struct to add encryption to a data vault
use this struct to add encryption to a data vault
fn new() -> Self {
        let cfg = EncryptionConfig::from_env().unwrap();
        let key = GenericArray::from_slice(
            cfg.key.as_bytes()
        );
        let cipher = Aes256GcmSiv::new(key);
        Self {
            cipher
        }
    }
fn new ( ) -> Self { let cfg = EncryptionConfig :: from_env ( ) . unwrap ( ) ; let key = GenericArray :: from_slice ( cfg . key . as_bytes ( ) ) ; let cipher = Aes256GcmSiv :: new ( key ) ; Self { cipher } }
use this struct to add encryption to a data vault
use this struct to add encryption to a data vault
example
```rust
use data_vault::encryption::traits::Encryption;
use data_vault::encryption::AesGcmSivEncryption;
let enc = AesGcmSivEncryption::new();
```
` ` ` rust use data_vault :: encryption :: traits :: Encryption ; use data_vault :: encryption :: AesGcmSivEncryption ; let enc = AesGcmSivEncryption :: new () ; ` ` `