new_key#

scikitplot.cleanprompt.new_key()[source]#

Generate a fresh vault key.

Returns:
str

A URL-safe base64 Fernet key, suitable for CLEANPROMPT_VAULT_KEY.

Raises:
CapabilityError

If the crypto tier is unavailable.

Return type:

str

Notes

User notes. Store this in your secret manager, not in the repository and not beside the vault. Anyone holding it can read any vault it encrypted.