web-utils/modules/random/random.php
2021-08-08 19:23:49 +02:00

9 lines
233 B
PHP

<?php
$len = $_GET['length'] ?? 32;
$contains = isset($_GET['contains']) ? explode(',', $_GET['contains']) : ['digit', 'upper', 'lower', 'special'];
header('Content-Type: text/plain');
echo generateRandomString($len, $contains);