X-Git-Url: http://git.pond.sub.org/?p=eow;a=blobdiff_plain;f=static%2Fdojo-release-1.1.1%2Fdojox%2Fencoding%2Ftests%2Fcrypto%2FBlowfish.js;fp=static%2Fdojo-release-1.1.1%2Fdojox%2Fencoding%2Ftests%2Fcrypto%2FBlowfish.js;h=0000000000000000000000000000000000000000;hp=3f5ac5488b7e1cb8f52d823c7ccfdc3cb79df773;hb=7beca26e6ea91745cd397ad69ac6e26bb934e683;hpb=bed7f6f60f166f71b2e3a98bb8d1e67c3e501909 diff --git a/static/dojo-release-1.1.1/dojox/encoding/tests/crypto/Blowfish.js b/static/dojo-release-1.1.1/dojox/encoding/tests/crypto/Blowfish.js deleted file mode 100644 index 3f5ac54..0000000 --- a/static/dojo-release-1.1.1/dojox/encoding/tests/crypto/Blowfish.js +++ /dev/null @@ -1,35 +0,0 @@ -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."); - } - ]); -})(); - -}