generate:encryption-key
Generates a new encryption key for any of the encryption use cases in Dream or Psychic, including encrypted columns (used with the @deco.Encrypted decorator), encrypting/decrypting cookies, and generalized use of the Encrypt library.
Usage
pnpm psy g:encryption-key
Options
--algorithm <algorithm>: The encryption algorithm to generate a key for (choices:aes-256-gcm,aes-192-gcm,aes-128-gcm, default:aes-256-gcm).-h, --help: Display help for command.
Examples
Generate a key using the default algorithm (aes-256-gcm):
pnpm psy g:encryption-key
Generate a key for a specific algorithm:
pnpm psy g:encryption-key --algorithm aes-128-gcm