欢迎光临
我们一直在努力

js编程-利用js生成免费的EditPlus注册码

最近有网友问我,市面上这么多的代码编辑器,到底那个好用,你用的什么编辑器,这让人怎么回答呢,最后我只能回答这个网友,你喜欢的就是最好的,我用的是EditPlus编辑器,我感觉EditPlus最好用,呵呵。

其时说起EditPlus他是一款功能强大的文字处理软件。它可以充分的替换记事本,它也提供网页作家及程序设计师许多强悍的功能。支持 HTML、CSS、PHP、ASP、Perl、C/C++、Java、JavaScript、VBScript 等多种语法的着色显示。程序内嵌网页浏览器,其它功能还包含 FTP 功能、HTML 编辑、URL 突显、自动完成、剪贴文本、行列选择、强大的搜索与替换、多重撤销/重做、拼写检查、自定义快捷键,等等。

除了这些以外,我感觉让我喜欢他最大的原因是就是他的体积小巧,只有几M大小,不像其他的编辑器那样体积从小的几十M到大的几个G,不方便随时携带,而EditPlus可以直接放在U盘中,想在那台电脑上用,在那台电脑上用,非常的方便。

EditPlus好用,但是个收费软件,想用他,必须得用注册码才可以,这可能让很多人头大,不过由于EditPlus的功能强大,加上又有这么多优点,所以网上有很多方法让你很容易就能获得免费的EditPlus注册码,下面是我整理的一段JS代码,只要把下面代码保存成html文件,然后用网页浏览器打开这个html文件,便能直接看到免费生成的注册码了,说白了,这就是一个js版的EditPlus注册机。

<script>
//EditPlus注册码(密钥)生成函数  
function editplus(username)
{
	var list = [0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8000,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16000,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32000,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];
	var hexchars = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'];
	var regcode = new Array(29);
	var i = 0, j = 0, k = 0;
	var len, temp, sum, result;
	username = username.replace(/^\s+|\s+$/g, "");

	for(i = 0;i < 5;i++,k++)
	{
		for(j = 0;j < 5;j++,k++)
		{
			regcode[k] = hexchars[parseInt(Math.random() * 16)];
		}
		if(k == 29) break;
		regcode[k] = '-';
	}
	
	len = username.length;

	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp = (parseInt( (sum + 23) / 6 ) + 3) * 7 % 16;
	regcode[6] = hexchars[temp & 0xF];
	
	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp = parseInt( (3 * sum + 39) / 8 ) % 16;
	regcode[9] = hexchars[temp & 0xF];
	
	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp = parseInt( (3 * sum + 19) / 9 ) % 16;
	regcode[7] = hexchars[temp & 0xF];
	
	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp = parseInt( (sum + 10) / 3 ) * 8 % 16;
	regcode[10] = hexchars[temp & 0xF];
	
	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp = (parseInt( (9 * sum + 10) / 3 ) + 36) % 16;
	regcode[4] = hexchars[temp & 0xF];
	
	sum = 1;
	for(i = 0;i < len;i++)
		sum += username.charCodeAt(i);
	temp =  parseInt( (5 * sum + 11) / 5 ) % 16;
	regcode[8] = hexchars[temp & 0xF];

	result = 0;
	for(i = 0;i < len;i++)
		result = ((result >> 8) & 0xFF) ^ list[username.charCodeAt(i) ^ (result & 0xFF)];
	result = result.toString(16).toUpperCase();
	regcode[2] = result.charAt(0);
	regcode[3] = result.charAt(1);
	
	len = regcode.length;
	result = 0;
	for(i = 2;i < len;i++)
		result = ((result >> 8) & 0xFF) ^ list[regcode[i].toString().charCodeAt(0) ^ (result & 0xFF)];
	result = result.toString(16).toUpperCase();
	regcode[0] = result.charAt(0);
	regcode[1] = result.charAt(1);

	return regcode.join("");
}
//EditPlus注册用户名,
var username="qzze.com";
//调用EditPlus注册码生成函数
var key=editplus(username);
//打印EditPlus生成的注册码
document.write (key);
</script>

代码中的用户名,大家可以随意改成自己喜欢的,然后生成editplus的注册码,以下是我用这段代码生成的几组EditPlus用户名和注册码,如果喜欢,大家可以直接拿去用。

EditPlus用户名:qzze,EditPlus注册码:FDAE8-5BD10-8170A-CEB4A-76271

EditPlus用户名:qzze.com,EditPlus注册码:A896F-04A90-18856-B941A-5AC68

EditPlus用户名:doctor,EditPlus注册码:CFA6B-5BE90-6F8FF-18410-8DA28

EditPlus用户名:blog.qzze.com,EditPlus注册码:B3345-B0C88-EEB0C-68318-CB563

赞(0) 打赏
转载请注明出处:爱编程 » js编程-利用js生成免费的EditPlus注册码
分享到: 更多

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

爱编程、一个运维兼程序员的博客!

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏