feat: Change charset

Remove vocals to substitution characters so no words are possible.
This commit is contained in:
overflowerror 2023-12-03 13:40:48 +01:00
parent 9fd3f3f8ec
commit 541100e6ac

View file

@ -9,7 +9,8 @@ const MAX_LENGTH = 20;
const DEFAULT_SCHEMA = "http://";
function generateCandidate(string $length) {
$charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
//$charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$charset = "bcdfghklmnpqrstvwxyzBCDFGHKLMNPQRSTVWXYZ256789";
return join("",
array_map(