php有现成函数MD5();就可以了
echo base64_encode(md5('111111', true));
base64_encode(md5($password));
php中本来就有md5这个加密算法md5($str)就ok了