⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blowfish.js

📁 这是一个ajax的例子大家好好的看看就是一个鱼眼的效果
💻 JS
字号:
if(!dojo._hasResource["dojox.encoding.tests.crypto.Blowfish"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.dojo._hasResource["dojox.encoding.tests.crypto.Blowfish"] = true;dojo.provide("dojox.encoding.tests.crypto.Blowfish");dojo.require("dojox.encoding.crypto.Blowfish");(function(){	var message="The rain in Spain falls mainly on the plain.";	var key="foobar";	var base64Encrypted="WI5J5BPPVBuiTniVcl7KlIyNMmCosmKTU6a/ueyQuoUXyC5dERzwwdzfFsiU4vBw";	var dxc=dojox.encoding.crypto;	tests.register("dojox.encoding.crypto.tests.Blowfish", [		function testEncrypt(t){			var dt=new Date();			t.assertEqual(base64Encrypted, dxc.Blowfish.encrypt(message, key));			doh.debug("testEncrypt: ", new Date()-dt, "ms.");		},		function testDecrypt(t){			var dt=new Date();			t.assertEqual(message, dxc.Blowfish.decrypt(base64Encrypted, key));			doh.debug("testDecrypt: ", new Date()-dt, "ms.");		},		function testShortMessage(t){			var msg="pass";			var pwd="foobar";			var dt=new Date();			var enc=dxc.Blowfish.encrypt(msg, pwd);			var dec=dxc.Blowfish.decrypt(enc, pwd);			t.assertEqual(dec, msg);			doh.debug("testShortMessage: ", new Date()-dt, "ms.");		}	]);})();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -