Random generation filters
Cryptographically random strings and passphrases, drawn from the OS RNG. Both are Pagelove extensions.
random
Generates a random string whose length is the input.
{{ 32 | random }}
Output: a 32-character alphanumeric string.
| Parameter | Values | Description |
|---|---|---|
upper |
true / false / integer |
Include uppercase letters; an integer sets a minimum count |
lower |
true / false / integer |
Include lowercase letters |
digits |
true / false / integer |
Include digits |
symbols |
true / false / integer |
Include symbols (!@#$%^&*()-_=+[]{}…) |
alphanumeric |
true / false / integer |
Include letters and digits |
url_safe |
true / false |
Use the URL-safe alphabet (A-Za-z0-9-_) |
chars |
string | Custom character set |
chars_min |
integer | Minimum count drawn from the custom character set |
<!-- 24-char string with at least 3 uppercase, 3 lowercase, 2 digits -->
{{ 24 | random: upper: 3, lower: 3, digits: 2 }}
<!-- 16-char lowercase + digits only -->
{{ 16 | random: lower: true, digits: true }}
diceware
Generates a hyphen-joined slug from random words drawn from a curated word list. The input is the word count (clamped to 1–10; default 3).
{{ 3 | diceware }}
Output: a slug like fuzzy-blue-wombat. The word list has over 1,600 common English adjectives, nouns, and colours; three words yield roughly 4.8 billion combinations.
See also
- Hashing and security filters — hash the tokens you generate
- When a filter errors