age_identity_free: Explicitly scrub an identity's secret key material

View source: R/identity.R

age_identity_freeR Documentation

Explicitly scrub an identity's secret key material

Description

Zeroes and frees the secret bytes immediately rather than waiting for garbage collection. The identity becomes unusable afterwards.

Usage

age_identity_free(identity)

Arguments

identity

An age_identity object.

Value

invisible(NULL).

Examples

id <- age_keygen()
age_identity_free(id)

agecrypt documentation built on Aug. 5, 2026, 9:08 a.m.