From f8c169076d08f0e394eefd9302946f9a1acb0591 Mon Sep 17 00:00:00 2001 From: sbosse Date: Tue, 27 Aug 2024 00:15:44 +0200 Subject: [PATCH] Tue 27 Aug 00:14:56 CEST 2024 --- test/test-des48.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test-des48.js diff --git a/test/test-des48.js b/test/test-des48.js new file mode 100644 index 0000000..c1fa022 --- /dev/null +++ b/test/test-des48.js @@ -0,0 +1,12 @@ +var key=[];for(var i=0;i<64;i++) key[i]=i%2; +// console.log(key, +var CKS=des48.des_OWsetkey(key); +for (var i=0;i<16;i++) { + var ck=''; + for (var j=0;j<48;j++) { + ck=ck+String(CKS.KS[i][j]) + } + console.log(ck) +} +var block=[]; for(var i=0;i<48;i++) block[i]=0; +console.log(des48.des_OWcrypt48(block).join(' , '))