public static function encode($input) { return str_replace('=', '', strtr(base64_encode($input), '+/', '-_')); }