-
-
Save salathe/177ff89f541d6184a7b6 to your computer and use it in GitHub Desktop.
Y64 - URL-safe Base64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function Y64_encode($input) { | |
| return strtr(base64_encode($input), '+/=', '._-'); | |
| } | |
| function Y64_decode($input) { | |
| return base64_decode(strtr($input, '._-', '+/=')); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment