Created
October 3, 2015 14:50
-
-
Save julienbourdeau/9e64abf707138fcbcae9 to your computer and use it in GitHub Desktop.
PHP: md5_base64 function
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
function md5_base64( $data ) { | |
return preg_replace('/=+$/','',base64_encode(pack('H*',md5($data)))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment