Skip to content

Instantly share code, notes, and snippets.

@jamlfy
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save jamlfy/d5205304e830963064c6 to your computer and use it in GitHub Desktop.

Select an option

Save jamlfy/d5205304e830963064c6 to your computer and use it in GitHub Desktop.
Email (Gmail)
To: "alejonext@gmail.com" <alejonext@gmail.com>
Subject: prueba
X-PHP-Originating-Script: 0:class.phpmailer.php
Date: Tue, 30 Dec 2014 19:43:59 -0500
From: Alejandro Next <alejonext@protonmail.ch>
Reply-To: Alejandro Next <alejonext@protonmail.ch>
Message-ID: <abeca990c24330d04161d56893e9d23a@protonmail.ch>
X-Priority: 3
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64
UHJ1ZWJhPGJyPjxicj48YnI+U2VudCBmcm9tIDxhIGhyZWY9Imh0dHBzOi8vcHJvdG9ubWFpbC5j
aCIgcmVsPSJub2ZvbGxvdyIgdGFyZ2V0PSJfYmxhbmsiPlByb3Rvbk1haWw8L2E+LCBlbmNyeXB0
ZWQgZW1haWwgYmFzZWQgaW4gU3dpdHplcmxhbmQuPGJyPjxicj48YnI+
var str = ['UHJ1ZWJhPGJyPjxicj48YnI+U2VudCBmcm9tIDxhIGhyZWY9Imh0dHBzOi8vcHJvdG9ubWFpbC5j',
'aCIgcmVsPSJub2ZvbGxvdyIgdGFyZ2V0PSJfYmxhbmsiPlByb3Rvbk1haWw8L2E+LCBlbmNyeXB0',
'ZWQgZW1haWwgYmFzZWQgaW4gU3dpdHplcmxhbmQuPGJyPjxicj48YnI+' ];
str = str.join('\n');
console.log(' str: ', str);
var buf = new Buffer( str, 'base64' );
console.log(' str: ', buf.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment