How to encrypt an email address?

Source: Internet
Author: User
Tags join

Email Address Encryption Code:

<code><meta http-equiv= "Content-type" content= "text/html; Charset=utf-8″/></code>

<style type= "Text/css" ><!–
body {font-size:12px;}
–></style><script type= "Text/javascript" language= "JavaScript" >//<! [cdata[
var email = "davidz94@yahoo.com";
function Getemail (email)
{
var r = "";
for (i=0;i<email.length;i++)
{
R + + "&#" + email.charcodeat (i);
}
return R;
}

function SetClipboard (ID)
{
var TB = document.getElementById (ID);
var copytext = Tb.value;
if (copytext!= "")
{
if (Window.clipboarddata)
{
Window.clipboardData.setData ("Text", CopyText);
Alert ("has been copied to the Clipboard.) ");
}
else if (window.netscape)
{
Setclipboardnetscape (CopyText);
Alert ("has been copied to the Clipboard.) ");
}
}
return false;
}

function Setclipboardnetscape (text) {


var url = [


' Data:text/html;charset=utf-8;base64,pgjvzhk+pc9ib2 ',


' R5pjxzy3jpchqgdhlwzt0idgv4dc9qyxzhc2nyaxb0ij4kkgz1 ',


' Bmn0aw9ukgvuy29kzwqpe3zhcibzd2zfzgf0ysa9ifskicdkyx ',


' Rhomfwcgxpy2f0aw9ul3gtc2hvy2t3yxzllwzsyxnoo2jhc2u2 ',


' NCXRMWRUQJJ3JYWKICDBQUFCNG5EUGDZBGPBD01QSTRNEJALMK ',


' YLMKY5JTJGZTJAZKJNYUDHV3DNRE1UNUTHJYWKICDRTU10TJRH ',


' ZGDAZ1NJTXDAWEZKYW01UUFFJTJCQM9IATFCTG5UTXLDCFB6RW ',


' 9ou0djjywkicdqrnalmkzbehnerejra3bgwkrguuzgq2d1evm4 ',


' Qxlqstrbrvvcaxkwvndbjtnejtnejwpdlmpvaw4oiiipowpkb2 ',


' N1BWVUDC5IB2R5LMLUBMVYSFRNTCA9IFSKICC8ZW1IZWQGC3JJ ',


' Psinlhn3zl9kyxrhlcciiccscianrmxhc2hwyxjzpsjjb2rlps ',


' Cszw5jb2rlzcwnij4nlaogjzwvzw1izwq+jwpdlmpvaw4oiiip ',


' Owp9ksgi ',


Base64Encode (encodeURIComponent (text) + ' ") &lt;/' + ' script&gt; ')


].join ("");


var tmp = document.createelement ("div");


tmp.innerhtml = [


' &lt;iframe src= ', url, ' "', ' width= ' 0" height= "0" &gt; '


, ' &lt;/iframe&gt; '


].join ("");


with (Tmp.style) {


position = "absolute";


left = " -10px";


top = " -10px";


visibility = "hidden";


};


Document.body.appendChild (TMP);


settimeout (function () {document.body.removeChild (TMP)},1000);


function Base64Encode (str) {


var Chars = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/". Split ("");


var C1, C2, C3;


var buf = [];


var len = str.length;


var i = 0;


while (I &lt; len) {c1 = Str.charcodeat (i) &amp; #038 0xFF;                 C2 = Str.charcodeat (i+1);                 C3 = Str.charcodeat (i+2); Buf.push (chars[(C1 &gt;&gt; 2)]);


if (i+1 = = len) {


Buf.push (chars[(C1 &amp; #038; 0x3) &lt;&lt; 4], "= =");


break;


}


Buf.push (chars[(C1 &amp; #038; 0x3) &lt;&lt; 4) | ((C2 &amp; #038; 0xF0) &gt;&gt; 4)]);


if (i+2 = = len) {


Buf.push (chars[(C2 &amp; #038; 0xF) &lt;&lt; 2], "=");


break;


}


Buf.push (


chars[(C2 &amp; #038 0xF) &lt;&lt; 2) | ((C3 &amp; #038; 0xc0) &gt;&gt; 6)],


chars[(C3 &amp; #038; 0x3F)]


);


i+=3;


}


return Buf.join ("")


}


}


//]]&gt;&lt;/script&gt;

&nbsp;

<strong>email Address Encryption </strong>

Email:
<input id= "Email" type= "hidden" name= "email" size= "50″value=" www54@66mo.biz "/>"
<input onclick= "document.getElementById (' export '). Value=getemail (document.getElementById (' email '). Value)" Type= "button" Name= "Submit" value= "Encryption"/>

<input onclick= "document.getElementById (' Preview '). Innerhtml=getemail (' email '). Value "Type=" button "Name=" submit2″value= "Click to view Email"/> <span id= "preview" style= "color: #ff0000;" > </span>

Results
<input id= "Export" type= "text" name= "Export" size= "76″/>"

&nbsp;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.