Skip to content

Instantly share code, notes, and snippets.

@Cameron-D
Created February 20, 2014 05:11
Show Gist options
  • Select an option

  • Save Cameron-D/9107411 to your computer and use it in GitHub Desktop.

Select an option

Save Cameron-D/9107411 to your computer and use it in GitHub Desktop.
inc/3rdparty/phpmailer/class.phpmailer.php: * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
inc/3rdparty/phpmailer/class.phpmailer.php: public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
inc/3rdparty/phpmailer/class.phpmailer.php: * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
inc/3rdparty/phpmailer/class.phpmailer.php: protected function encodeFile($path, $encoding = 'base64')
inc/3rdparty/phpmailer/class.phpmailer.php: * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
inc/3rdparty/phpmailer/class.phpmailer.php: public function encodeString($str, $encoding = 'base64')
inc/3rdparty/phpmailer/class.phpmailer.php: case 'base64':
inc/3rdparty/phpmailer/class.phpmailer.php: $encoded = chunk_split(base64_encode($str), 76, $this->LE);
inc/3rdparty/phpmailer/class.phpmailer.php: $encoded = $this->base64EncodeWrapMB($str, "\n");
inc/3rdparty/phpmailer/class.phpmailer.php: $encoded = base64_encode($str);
inc/3rdparty/phpmailer/class.phpmailer.php: public function base64EncodeWrapMB($str, $lf = null)
inc/3rdparty/phpmailer/class.phpmailer.php: // Base64 has a 4:3 ratio
inc/3rdparty/phpmailer/class.phpmailer.php: $chunk = base64_encode($chunk);
inc/3rdparty/phpmailer/class.phpmailer.php: $encoding = 'base64',
inc/3rdparty/phpmailer/class.phpmailer.php: public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline')
inc/3rdparty/phpmailer/class.phpmailer.php: $encoding = 'base64',
inc/3rdparty/phpmailer/class.phpmailer.php: 'base64',
inc/3rdparty/phpmailer/class.phpmailer.php: return base64_encode($signature);
inc/3rdparty/phpmailer/class.phpmailer.php: $DKIMb64 = base64_encode(pack("H*", sha1($body))); // Base64 of packed binary SHA-1 hash of body
inc/3rdparty/phpmailer/class.smtp.php: base64_encode("\0" . $username . "\0" . $password),
inc/3rdparty/phpmailer/class.smtp.php: if (!$this->sendCommand("Username", base64_encode($username), 334)) {
inc/3rdparty/phpmailer/class.smtp.php: if (!$this->sendCommand("Password", base64_encode($password), 235)) {
inc/3rdparty/phpmailer/class.smtp.php: 'AUTH NTLM ' . base64_encode($msg1),
inc/3rdparty/phpmailer/class.smtp.php: $challenge = base64_decode($challenge);
inc/3rdparty/phpmailer/class.smtp.php: return $this->sendCommand('Username', base64_encode($msg3), 235);
inc/3rdparty/phpmailer/class.smtp.php: $challenge = base64_decode(substr($this->last_reply, 4));
inc/3rdparty/phpmailer/class.smtp.php: return $this->sendCommand('Username', base64_encode($response), 235);
inc/class_mailhandler.php: $output .= " =?UTF-8?B?".base64_encode($chunk)."?=\n";
inc/functions.php: // /dev/urandom and openssl will always be twice as long as $count. base64_encode will roughly take up 33% more space but crc32 will put it to 32 characters
inc/functions.php: $output = hexdec(substr(dechex(crc32(base64_encode($output))), 0, $count));
inc/mailhandlers/smtp.php: if(!$this->send_data(base64_encode($this->username), '334'))
inc/mailhandlers/smtp.php: if(!$this->send_data(base64_encode($this->password), '235'))
inc/mailhandlers/smtp.php: $auth = base64_encode(chr(0).$this->username.chr(0).$this->password);
inc/mybb_group.php: echo base64_decode($mybb_logo);
task.php: echo base64_decode("R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment