这是百度云加速其中的一项功能,把邮箱地址混淆了,
怎么解密呢?
C#如何实现将 邮箱号解密出来
data-cfemail="66000810120d5656572612090b4805090b" 的邮箱值解密出来.
<a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="66000810120d5656572612090b4805090b">[email protected]</a><scrip{过滤}t cf-hash='f9e31' type="text/javascrip{过滤}t">
/* <![CDATA[ */!function(){try{var t="currentscrip{过滤}t"in document?document.currentscrip{过滤}t:function(){for(var t=document.getElementsByTagName("scrip{过滤}t"),e=t.length;e--;)if(t[e].getAttribute("cf-hash"))return t[e]}();if(t&&t.previousSibling){var e,r,n,i,c=t.previousSibling,a=c.getAttribute("data-cfemail");if(a){for(e="",r=parseInt(a.substr(0,2),16),n=2;a.length-n;n+=2)i=parseInt(a.substr(n,2),16)^r,e+=String.fromCharCode(i);e=document.createTextNode(e),c.parentNode.replaceChild(e,c)}}}catch(u){}}();/* ]]> */</scrip{过滤}t> string Demo(string a="66000810120d5656572612090b4805090b"){
string e="";
int r,n,i;
r=Convert.ToInt32(a.Substring(0,2),16);
for (n = 2; n < a.Length; n+=2) {
i=Convert.ToInt32(a.Substring(n,2),16)^r;
e+=(char)i;
}
//System.Diagnostics.Debug.WriteLine(e);
return e;
|