AnyankaKeys/Public/tests/basics.html

46 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title data-i18n="anyanka_title_test_base">Base test - AnyankaKeys</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script data-type="text/javascript;charset=utf-8" data-language="ECMAScript 2015" src="../ecma/AnyankaKeys.ecma.js" data-crossorigin="anonymous" charset="utf-8"></script>
<script data-type="text/javascript;charset=utf-8" data-language="ECMAScript 2015" src="ecma/AnyankaKeys.tests.encode.ecma.js" data-crossorigin="anonymous" charset="utf-8"></script>
<script data-type="text/javascript;charset=utf-8" data-language="ECMAScript 2015" charset="utf-8">
// basics = new Basics();
// const anyanka_keys = new AnyankaKeys(),
// // example = "¡Hola! ¿Qué tal? Esto es una prueba con caracteres especiales como la \"ñ\".",
// example = "AB",
// encoded = anyanka_keys.encrypt(example),
// decoded = anyanka_keys.decrypt(encoded[0]);
// // console.log(anyanka_keys);
// AnyankaKeys.prototype.print([example, encoded[0], decoded[0]]);
// console.log(new Array(Math.random() * 10 >> 0).fill(0).forEach(x => console.log("jojo")));
// const encode_test = new AnyankaKeysTestsEncode();
// AnyankaKeysTestsEncode.prototype.check_asynchronous_bucle({
// timer : 100,
// items : 10000,
// retry_ok : true
// });
// encode_test.fix.c();
const anyanka_keys = new AnyankaKeys(),
encrypted = anyanka_keys.encrypt("Hola xDD");
console.log(encrypted);
console.log(anyanka_keys.decrypt(encrypted[0]));
</script>
</head>
<body></body>
</html>