vaultrs::transit::data

Function encrypt

Source
pub async fn encrypt(
    client: &impl Client,
    mount: &str,
    name: &str,
    plaintext: &str,
    opts: Option<&mut EncryptDataRequestBuilder>,
) -> Result<EncryptDataResponse, ClientError>
Expand description

Encrypt base64-encoded plaintext data using the named key.

See EncryptDataRequest