web-utils/modules/random/random.php

10 lines
233 B
PHP
Raw Normal View History

2021-08-08 17:23:49 +00:00
<?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);