web-utils/modules/random/random.php

10 lines
240 B
PHP
Raw Normal View History

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