2021-08-08 19:23:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$len = $_GET['length'] ?? 32;
|
|
|
|
|
|
2021-08-21 21:48:33 +02:00
|
|
|
$contains = isset($_GET['contains']) ? explode(',', $_GET['contains']) : ['hex', 'digit', 'upper', 'lower', 'special'];
|
2021-08-08 19:23:49 +02:00
|
|
|
|
|
|
|
|
header('Content-Type: text/plain');
|
|
|
|
|
|
|
|
|
|
echo generateRandomString($len, $contains);
|