From ba61c6435b668375a411716f3a35447aa38b03a4 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 18 Jan 2025 00:22:36 +0000 Subject: implement object storage --- misc/random_printable_bytes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/random_printable_bytes.php b/misc/random_printable_bytes.php index d2b8770..9e55fe7 100644 --- a/misc/random_printable_bytes.php +++ b/misc/random_printable_bytes.php @@ -6,5 +6,5 @@ */ function random_printable_bytes(): string { // i think 128 bytes should be enough .. i hope so anyway - return base64_encode(random_bytes(128)); + return str_replace(['+', '/', '='], ['-', '_', ''], base64_encode(random_bytes(128))); } \ No newline at end of file -- cgit v1.3