Function vaultist::decrypt_secret

source ·
pub fn decrypt_secret(
    key: &[u8],
    encrypted_serialised: Vec<u8>,
    nonce_bytes: Vec<u8>
) -> Secret
Expand description

Decrypt a secret from the vault.

Arguments

  • key - The vault’s key.

  • encrypted_serialised - The bytes of the encrypted secret.

  • nonce_bytes - The bytes of the nonce used to encrypt the secret.