Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
/**
* @brief URL Safe Base64 Encoding Polyfill
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 11 Feb 2021
*/
namespace Base64Url;
class Base64Url
{
public static function encode( string $string ): string
{
return \str_replace( '=', '', \strtr( base64_encode( $string ), '+/', '-_' ) );
}
public static function decode( string $string ): string
{
return base64_decode( \strtr( $string, '-_', '+/' ) );
}
}