# Simple Login Form with Encryption
#
# Minimal example for quick testing of encryption features
#
# Test redaction (no service required):
#   typedialog form examples/08-encryption/simple-login.toml --redact --format json
#
# Test Age encryption (requires ~/.age/key.txt):
#   typedialog form examples/08-encryption/simple-login.toml \
#     --encrypt --backend age --key-file ~/.age/key.txt --format json
#
# Test SOPS encryption (requires .sops.yaml and KMS credentials):
#   export AWS_REGION=us-east-1
#   typedialog form examples/08-encryption/simple-login.toml \
#     --encrypt --backend sops --format json
#
# Test SecretumVault encryption (requires vault service):
#   export VAULT_ADDR=https://vault:8200
#   export VAULT_TOKEN=hvs.token...
#   typedialog form examples/08-encryption/simple-login.toml \
#     --encrypt --backend secretumvault --format json
#

description = "Simple login form with password encryption"
display_mode = "complete"
name = "login"

[[fields]]
name = "username"
prompt = "Username"
required = true
sensitive = false
type = "text"

[[fields]]
name = "password"
prompt = "Password"
required = true
type = "password"
# sensitive: auto-detected as true from FieldType::Password
