Skip to content

v1.6.0

Latest

Choose a tag to compare

@Darknetzz Darknetzz released this 25 Nov 21:11

[v1.6.0] (2026-11-25)

Major Features

  • Dependency updates – symfony/yaml 8.1.10 → 8.1.12 fixes CVE-2026-123792 (GHSA-hwfg-qwvh-2wfx), where a crafted YAML document could make parsing take a very long time. Also matthiasmullie/minify 1.3.75 → 1.3.76 (composer.lock, vendor/). Frontend: jQuery 4.0.0 → 4.1.0 (new SRI hash), @tabler/core 1.7.3 → 1.7.5, lucide-static 1.66.0 → 1.80.0 (index.php, test pages), bundled axios 1.21.0 → 1.21.1 (js/axios.min.js). marked is now pinned to 18.3.0 instead of the unversioned jsDelivr URL, so a new major release can't change Markdown rendering unannounced (ensureMarkdownAssets(), js/rand.js). CI: docker:27/docker:27-dind → docker:29, alpine:3.22 → alpine:3.24 (.gitlab-ci.yml).
  • Password Strength Checker – New Cryptography → Password Strength tool (modules/password_strength.php, GitLab #18). It shows a 0–4 score with a coloured meter, the estimated guesses and bits, zxcvbn's warning and suggestions (common passwords, keyboard patterns, dates, repeats, sequences), crack-time estimates for four attack scenarios (rate-limited and unlimited online, slow and fast offline hashes) and a table of the patterns found in each part of the password. It runs entirely in the browser: the field is not in a submitting form, has autocomplete="off", and the password is never sent to the server or stored, which the page says up front. A show/hide toggle switches the field type. zxcvbn 4.4.2 is loaded on demand from cdnjs, pinned like highlight.js (ZXCVBN_VERSION in js/rand.js), so About → External libraries lists it automatically (CDN rather than a bundled copy, following the repo's other frontend libraries). Logic is in initPasswordStrengthUi() and pwstrengthDescribeMatch() (js/rand.js), styles are .pwstrength-* in style.css.
  • Placeholder Data – New Generators → Placeholder Data tool (modules/placeholder_data.php, GitLab #11) with two subpages. Lorem ipsum makes N paragraphs, sentences or words, optionally starting with "Lorem ipsum dolor sit amet" (handle_lorem, lorem_sentence()). Fake data makes up to 1,000 rows of names, emails, usernames, phone numbers, addresses, IPv4/IPv6, MAC addresses, URLs and dates as tab-separated lines, CSV or JSON (handle_fake_data, fake_data_row()). It only uses reserved values: example.com/.org/.net and .test domains, the IPv4 documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24), 2001:db8::/32, the fictional 555-01xx phone block and locally administered MACs. Both support the optional seed. Word lists live in includes/data/lorem_words.txt and includes/data/fake_data.php; the lorem list is read by lorem_words() (includes/functions.php) and passed to the random-fill buttons as window.RAND_LOREM_WORDS (index.php), replacing the copy in js/rand.js. Limits are LOREM_MAX and FAKE_DATA_MAX_ROWS in includes/config.php.
  • ID timestamp decoder – The ID Generator has a new Decode timestamp subpage (#gen_id/decode, GitLab #16) that pulls the embedded time and fields out of an ID, auto-detecting the type (id_detect_type()) or taking an override. ULID: timestamp and randomness parts (id_decode_ulid()). UUID: version and variant, plus the timestamp for v1/v6 (100 ns precision, clock sequence, node with a MAC/random note) and v7; nil and max UUIDs and urn:uuid:/braces are recognised (id_decode_uuid()). Snowflake: timestamp, machine ID split into its two 5-bit halves and sequence, with Twitter/X, Discord and Unix epoch presets (SNOWFLAKE_EPOCHS in includes/config.php) or a custom epoch (id_decode_snowflake()). The time is shown in UTC, in a chosen timezone (defaults to the browser's), as ISO 8601, Unix ms and relative (relative_time_humanize()). Handler handle_id_decode (includes/handlers_functional.php). New shared helpers in includes/functions.php: timezone_select_html() (now also used by Date & Time instead of its own closure) and copyable_table_html() (now also used by the Relative Time result tables).
  • Colour Generator – New Generators → Colour Generator tool (modules/colour_gen.php, GitLab #12). Single colour shows one large swatch; Palette shows five from a scheme (random, analogous, complementary, triadic, monochrome). Each swatch has copyable HEX, RGB and HSL values, black or white text picked by WCAG contrast, and a lock: Generate re-rolls only the unlocked colours, building the scheme around the first locked one. Runs in the browser with crypto.getRandomValues(). New shared colour helpers in js/rand.js (secureRandomInt(), randomHexColour(), hexToRgb(), rgbToHsl(), hslToHex(), contrastTextColour()); the logo generator's random colours use randomHexColour() instead of its own Math.random() helper.
  • Dice notation – The Dice Roller takes tabletop notation in a new Dice notation field (GitLab #13): 3d6, +K/-K modifiers, keep/drop (4d6kh3, 4d6dl1, 2d20kh1 advantage, 2d20kl1 disadvantage; k = kh, d = dl), d% for d100, and several groups in one roll (1d20+2d6+3). The summary shows each group with dropped dice in parentheses and the total, e.g. 4d6kh3+3: [6, (1), 5, 3] + 3 = 17; dropped dice fade out in the tray once they land. Parsed server-side by parse_dice_notation() / handle_dice_notation_roll() (includes/handlers_functional.php), with the total dice still capped by DICE_MAX_COUNT and sides by DICE_MIN_SIDES/DICE_MAX_SIDES; new DICE_NOTATION_* limits in includes/config.php. Seed and Recent results work as before. dice_tray_html() takes optional per-die sides and dropped flags (data-dice-sides-list, data-dice-dropped), read by renderDiceRoll().
  • Chmod Calculator – New Miscellaneous → Chmod Calculator tool (modules/chmod.php, GitLab #17). Tick read/write/execute for owner, group and others plus setuid, setgid and sticky, or type an octal (755, 4755) or symbolic (rwxr-xr-x, rwsr-xr-T, ls-style -rw-r--r--) mode; all three views stay in sync and a copyable chmod 755 file command follows along. Runs entirely in the browser (initChmodUi(), chmodToSymbolic(), chmodParseSymbolic() in js/rand.js); invalid input is flagged without touching the other views.
  • Spin the Wheel random buttons fixed – Wheel rows no longer collect rows of stray shuffle buttons under each item. addRandomDataButtons() (js/rand.js) treated each wheel row as an .input-group and put the button after the row, so its duplicate check never saw it and every re-run (page load, Add Item) added another one for both the item and the weight field. Wheel rows now get one button inline next to the item text, and none for the weight.
  • Card Draw – New Generators → Card Draw tool (modules/card_draw.php, GitLab #9). It draws 1–52 cards, or 1–54 with the two jokers, without replacement from a deck shuffled server-side with rng_shuffle() (card_deck(), handle_card_draw). Cards are drawn as playing cards (rank corners, red ♥♦ / black ♠♣ suits) dealt in one by one with a CSS animation that respects prefers-reduced-motion. A copyable summary reads like A♠, 10♥, Q♦. The tool supports the optional seed and keeps the shared Recent results list.
  • Magic 8-Ball – New Generators → Magic 8-Ball tool (modules/magic_8ball.php, GitLab #10). Ask an optional question and shake the ball for one of 20 original answers (10 positive, 5 neutral, 5 negative, eightball_answers()) or a plain Yes/No. The ball shakes and the answer fades into its window, tinted green, amber or red by tone, with no motion under prefers-reduced-motion. The question is echoed in a copyable Q:/A: summary. It is picked server-side (handle_eightball), supports the optional seed and keeps a Recent results list. In js/rand.js, both new tools add to the history once their CSS animation has finished.
  • Passphrase Generator – New Generators → Passphrase Generator tool (modules/gen_passphrase.php, GitLab #7) for diceware-style passphrases like correct-horse-battery-staple. Words come from the bundled EFF large wordlist (7,776 words, CC BY 3.0, includes/data/eff_large_wordlist.txt, read by passphrase_wordlist()) and are picked server-side with random_int(). Options: 3–20 words, separator (hyphen, space, dot, underscore, none), capitalisation (none, first letter, random), append a digit and/or a symbol, and up to 100 passphrases at once. Handler handle_passphrase shows the entropy next to the result (words × log2(7776), plus 1 bit per word for random capitalisation and the digit/symbol pools). A shared entropy_badge_html() (includes/functions.php) draws it and rates it weak/fair/strong/very strong, and the String Generator's Info table now shows it too. The word list is listed in About → External libraries as bundled data. Limits are PASSPHRASE_* in includes/config.php.
  • List Shuffler – New Generators → List Shuffler tool (modules/list_shuffler.php, GitLab #8): paste a list with one item per line, then Shuffle it, Pick N random winners with no repeats, or Split into groups by number of groups or by items per group. Groups are dealt round-robin, so sizes differ by at most one ("split 23 people into 4 teams" gives 6/6/6/5). Blank lines are ignored, duplicates can be removed, and each group plus the whole result is copyable. Handler handle_list_shuffle shuffles server-side with a new rng_shuffle() (includes/functions.php, Fisher–Yates on rng_int(), so it is secure by default and supports the optional seed). utf8_shuffle() uses it too. Limits are LIST_SHUFFLE_MAX_ITEMS and LIST_SHUFFLE_MAX_BYTES in includes/config.php.
  • Recent results for dice and coins – Dice Roller and Coin Flip now list the last 20 results under the tool, newest first, with the time and a Clear history button (GitLab #14). Coin Flip also keeps a running heads/tails tally with counts and percentages, which goes on counting after old flips drop off the list. A result is added once the dice land, so the list doesn't give it away early. It is a shared component other random tools can reuse: result_history_html() (includes/functions.php) places the list, result_history_attrs() (includes/handlers_functional.php) tags a response with data-history-* (added to dice_tray_html()), and recordResultHistory() / renderResultHistory() (js/rand.js) store it per tool in localStorage (rand.history.<tool>). renderDiceRoll() now returns a promise that resolves when the roll finishes. Styles are .rand-history* in style.css.
  • Seeded dice and coins – Dice Roller and Coin Flip have an optional Use custom seed switch, like the Number Generator (GitLab #15). An empty seed keeps random_int(). A seed switches to seeded mt_rand(), so the same seed and settings give the same result, and the output says "Not cryptographically secure" and shows the seed used. All three tools share one implementation now: seed_field_html() (includes/functions.php) for the form fields, req_seed() and rng_seed_notes() (includes/handlers_functional.php) for reading the seed and the notes under the result, and one delegated [data-seed-toggle] handler in js/rand.js that replaces the Number Generator's inline script. resolve_numgen_seed() is renamed resolve_rng_seed(). The Number Generator now also treats an empty seed with the switch on as "no seed" instead of an error.
  • Programming cases in String Tools – New PascalCase, snake_case, CONSTANT_CASE and dot.case buttons in String Tools (GitLab #19). A shared word splitter, stringtools_split_words() (includes/handlers_functional.php), splits on spaces, -, _, ., other punctuation and camelCase boundaries (myVarName → my_var_name, XMLHttpRequest → xml_http_request), and stringtools_convert_case() converts each line separately so lists of names keep their lines. camelCase and kebab-case use the same splitter now: camelCase used to split only on spaces, and kebab-case turned myVarName into myvarname. Multibyte letters are kept (blåbær_syltetøy); kebab-case still transliterates to ASCII for URLs.
  • Rolling dev-latest release – Every push of dev to GitLab now publishes a Dev Latest pre-release on GitHub and GitLab, like jotty-android. A new dev-latest job in .gitlab-ci.yml runs scripts/publish-dev-latest.sh, which moves the dev-latest tag to the commit on both remotes and recreates the GitHub pre-release (never marked latest). It also creates or updates the GitLab release through the job token. Notes link the commit and the :dev Docker image and include the [Unreleased] changelog section. The job waits for GitHub dev to catch up and skips if a newer commit has replaced it. --dry-run previews the notes. Documented in README.md and AGENTS.md.
  • Coin Flip – New Generators → Coin Flip tool (modules/coin_flip.php): flip 1–100 coins (COIN_MAX_COUNT in includes/config.php). Handler handle_coin_flip flips server-side with random_int and reuses the Dice Roller's 3D d2 coin, drawn in gold with H/T faces, then shows a copyable summary such as 3 coins: Heads, Tails, Heads (2 heads, 1 tail). Shared dice_tray_html() builds the markup for both tools; renderDiceRoll() (js/rand.js) takes optional face labels (data-dice-labels) and the dice colour is now a --dice-hue CSS variable (style.css).
  • Dice Roller – New Generators → Dice Roller tool (modules/dice_roller.php): choose the number of dice (1–100) and sides per die (2–1000, default 6). Handler handle_dice_roll rolls server-side with random_int; renderDiceRoll() (js/rand.js) tumbles a 3D CSS die per roll that has as many faces as the die has sides: a coin for d2, the real polyhedra for d4/d6/d8/d12/d20 (pips on d6), a d10-style trapezohedron for other even counts, a prism (barrel die) for odd counts, and a shaded ball above 60 sides (DICE_SHAPE_MAX_FACES). Faces are numbered 1–N with opposite faces summing to N+1 where the shape allows, 6/9-style numbers are underlined, faces are shaded from a fixed light, and the rolled face lands toward the viewer. When the rolled face is too small to read (many-sided dice), a result badge fades in over the die once it lands (DICE_BADGE_MIN_FONT). It then reveals a copyable summary such as 3d6: 4, 1, 6 = 11. Respects prefers-reduced-motion. Limits live in includes/config.php.
  • Release script without a terminal – scripts/release.sh no longer aborts with __v: unbound variable when run without a controlling terminal (CI, agents): a new has_tty() actually opens /dev/tty instead of checking [[ -r /dev/tty ]], which is true even with no terminal. The "Next steps" text no longer claims GitHub Actions creates the GitHub Release (Actions are unused); it prints the gh release create command instead.
  • Min per type in String Generator – The Character Rules card has a new Min per type row next to Max per type: set a minimum count of Numbers / Lowercase / Uppercase / Special characters (e.g. Min Numbers = 2 guarantees at least two digits). stringgen_generate() (includes/functions.php) draws each type's minimum first, fills the rest from the pool with the max caps, then shuffles. stringgen_validate_limits() takes the minimums too and rejects a min for a type the selected sets don't contain, a min above its max, and minimums that add up to more than the length. handle_stringgen reads min_* / max_* in one loop, and the module renders both rows from one loop (modules/gen_string.php).
  • Hexadecimal strings – String Generator gained Hexadecimal (lowercase) 0-9a-f and Hexadecimal (uppercase) 0-9A-F charset toggles (flags x / X in stringgen_charset_chars(), includes/functions.php; accepted by handle_stringgen). Turning one on clears the other built-in sets and the opposite hex case, so the output is pure hex (custom characters stay if enabled) (modules/gen_string.php).
  • String Generator character rules – New Character Rules card in the String Generator (modules/gen_string.php): Avoid ambiguous characters drops look-alikes 0 O o 1 l I | (STRINGGEN_AMBIGUOUS_CHARS), and Max per type caps how many Numbers / Lowercase / Uppercase / Special characters a string may contain (empty = no limit; e.g. Special = 1). Generation moved into a shared stringgen_generate() used by genStr() / genStrCrypto() (includes/functions.php): types drop out of the pool once they hit their cap, then the result is shuffled with the same RNG so capped characters don't cluster at the start. handle_stringgen rejects limits that can't fill the requested length, and the combinations count is marked as an upper bound when limits are set.
  • Multibyte charsets fixed – Symbols (¤, ´), Extended (ƒ†‡™•) and custom characters were split byte-by-byte with str_split(), producing broken characters and an inflated pool size; stringgen_charset_chars() now splits with the shared utf8_chars() helper.
  • Unbiased secure strings – genStrCrypto() (includes/functions.php) now picks characters with random_int() instead of ord(random_bytes(1)) % count, which favoured some characters whenever the pool size didn't divide 256 (e.g. the 62-char alphanumeric set). UI label and result banner now say random_int().
  • Secure random numbers by default – Number Generator now uses random_int() (CSPRNG) unless a custom seed is set; a seed switches to seeded mt_rand() (reproducible, not secure), so the two modes are mutually exclusive. New shared helpers in includes/functions.php: rng_seed(), rng_is_seeded(), rng_int(), rng_pick(), rng_bytes(), rng_gmp_range() (rejection sampling over random_bytes()) and rng_source_notice(). numGen() and the large-digit (GMP) path use them instead of mt_rand() / array_rand() / gmp_random_range(), which also makes seeded large-digit output reproducible (gmp_random_range() ignored mt_srand()). Number and String Generator output now states which RNG was used (.rng-notice in style.css); the String Generator's non-secure mode is labelled array_rand(). Unweighted Spin the Wheel picks with random_int(). Removed the unused legacy spinWheel() helper. GitLab #6.
  • Enter-key form submit – Pressing Enter in a tool form now sends the submit button's name/value (GitLab #5). Before, the handler only looked at $('.genBtn:focus'), which is empty when focus is in a text field. As a result, OpenSSL (tool=encrypt|decrypt) and Bin↔Hex (tool=bin2hex|hex2bin) answered "Invalid tool selected.", or reused the button clicked last. New getFormSubmitter() (js/rand.js) uses SubmitEvent.submitter, then a focused submit button in the form, then the form's first submit button. This also fixes clicks in Safari, which doesn't focus buttons. Removed the dead button[clicked=true] code. submitToolForm() now serializes after adding its hidden action/responsetype inputs.
  • UTF-8 in string tools – Multibyte text (æ, ø, å, ™, …) no longer turns into broken bytes (GitLab #4). New shared helpers in includes/functions.php: utf8_chars(), utf8_reverse(), utf8_shuffle() (Fisher–Yates with random_int), utf8_invert_case(), utf8_to_ascii() (intl Any-Latin; Latin-ASCII, iconv fallback) and utf8_levenshtein(). String Generator builds its character pool per character instead of per byte, so symbols (¤, ´), the extended set (ƒ†‡™•) and custom characters give valid UTF-8 and a correct "possible combinations" count. String Tools (handle_stringtools): reverse, shuffle and inverted case work per character; slugify/kebab-case transliterate first (blåbær → blabaer); remove punctuation/symbols/extended symbols keep non-ASCII letters and remove letters removes them; invalid UTF-8 input is rejected with HTTP 422. Levenshtein counts characters, not bytes (a → å is 1, not 2), and the 255-byte cap is replaced by LEVENSHTEIN_MAX_CHARS (1,000 characters, includes/config.php).