Tue 27 Aug 00:14:56 CEST 2024

This commit is contained in:
sbosse 2024-08-27 00:15:44 +02:00
parent 7285b285ab
commit f8c169076d

12
test/test-des48.js Normal file
View File

@ -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(' , '))