|
|
|
|
|
|
Test
-
<script type="text/javascript" src="/library/com/oclib/javascript/lang/Root.js"></script>
-
<script type="text/javascript" src="Blowfish.js"></script>
-
var blowfish = new com.oclib.javascript.security.encryption.Blowfish();
-
document.write("className: "+blowfish.getClassName());
-
document.write("classNamespace: "+blowfish.getClassNamespace());
-
document.write("classCreated: "+blowfish.getClassCreated());
-
document.write("classCreator: "+blowfish.getClassCreator());
-
document.write("classLocation: "+blowfish.getClassLocation());
-
document.write("classIndexLocation: "+blowfish.getClassIndexLocation());
-
document.write("classVersion: "+blowfish.getClassVersion());
-
document.write("classVersionLocation: "+blowfish.getClassVersionLocation());
-
document.write("classVersionIndexLocation: "+blowfish.getClassVersionIndexLocation());
-
document.write("debugging: "+blowfish.getDebugging());
-
document.write("log: "+blowfish.getLog());
-
document.write("tracing: "+blowfish.getTracing());
-
document.write("init: "+blowfish.init("blablabla"));
-
e = blowfish.encrypt("yahooooooo!");
document.write("Encrypted \"yahooooooo!\" is \""+e+"\"");
-
e = blowfish.encrypt("yahooooooo!");
document.write("Encrypted \"yahooooooo!\" is \""+e+"\"");
-
d = blowfish.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
d = blowfish.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
e = blowfish.encrypt("ohhhhhhh!");
document.write("Encrypted \"ohhhhhhh!\" is \""+e+"\"");
-
d = blowfish.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
e = blowfish.encrypt("yahooooooo!");
document.write("Encrypted \"yahooooooo!\" is \""+e+"\"");
-
d = blowfish.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
var blowfishD = new com.oclib.javascript.security.encryption.Blowfish();
blowfishD.init("blablabla"));
e = blowfishD.encrypt("yahooooooo!");
document.write("Encrypted \"yahooooooo!\" is \""+e+"\"");
-
d = blowfishD.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
var blowfishNew = new com.oclib.javascript.security.encryption.Blowfish();
blowfishNew.init("blablabla"));
d = blowfishNew.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
blowfish = new com.oclib.javascript.security.encryption.Blowfish();
document.write("init: "+ blowfish.init("123"));
d = blowfish.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
-
blowfishD.init("блаблабла"));
e = blowfishD.encrypt("Урааааа!");
document.write("Encrypted \"Урааааа!\" is \""+e+"\"");
-
d = blowfishD.decrypt(e);
document.write("Decrypted \""+e+"\" is \""+d+"\"");
|
|
oclib.com,
oclib.net,
oclib.org,
oclib.ru,
openclasslibrary.ru,
openclasslibrary.com,
openclasslibrary.net,
openclasslibrary.org
|