10 lines
233 B
PHP
10 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);
|