Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function base64url_encode($data)
- {
- return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
- }
- function base64url_decode($b64url)
- {
- return base64_decode(strtr($b64url, '-_', '+/'));
- }
Add Comment
Please, Sign In to add comment