Creates a key (idempotent: an existing key is returned unchanged). type defaults to
aes256-gcm96; it may also be given as options.type (positional wins).
OptionaltypeOrOptions: TransitKeyType | CreateKeyOptionsDecrypts a vault:v<n>: ciphertext and returns the plaintext bytes.
Decrypts many items in one request; see encryptBatch for error handling.
Deletes a key (needs deletionAllowed: true, else ValidationError).
Encrypts plaintext (text is UTF-8 encoded).
Encrypts many items in one request. Results are in input order; a failed item has error
set (the call itself only fails when the whole request fails).
Generates a data key encrypted with the transit key (plus its plaintext by default).
Hash of input (default sha2-256, hex).
HMAC of input (vault:v<n>:<base64>).
Key names (sorted); [] when there is none.
bytes random bytes from the server, encoded as base64 (default) or hex.
Reads a key; NotFoundError when missing.
Re-encrypts a ciphertext with the latest (or given) key version without revealing it.
Adds a new key version; returns the updated key.
Signs input with an asymmetric key.
Updates key settings; returns the updated key.
Verifies a signature ({ signature }) or an HMAC ({ hmac }). Returns false for an
invalid signature (not an error).
Transit engine on one mount:
client.transit(mount = "transit").