Clear: Official Secret Act
Cipher: Oc rAfiilSce cfaett
CodePudding user response:
The fence should not standard password?Looking for an online
https://www.qqxiuzi.cn/bianma/zhalanmima.php
Result is wrong, the estimate is based on the fence made adjustments, or do more than the results of a fence
CodePudding user response:
Official Secret Act
C. O r A
I f I l S c e. c
F a t e t
CodePudding user response:
Paste the results after coming out, I think it's not a fence passwordThe password of the building Lord, is the password plaintext is divided into three lines, each column 1, fixed line upward or downward direction until the border, then each row of characters together
If it is 4 lines, is under the rule of the
Official Secret Act
O r a t
F I l e c c
C. f e t A
I. s.
Oartfilcecfc etAiS
CodePudding user response:
var key=', abcdefg, hijklmn opq, RST, the sale, xyz. Xyz, now you see, I can say my ABC. ';
The function encode (key, layer) {
Var arr=[];
for(var i=0; iArr. Push (new Array (key length));
};
for(var i=0; iVar m=I % ((layer 1) * 2);
Var l=m & lt; Layer? I % ((layer 1) * (2) : (layer 1) * 2 - I % ((layer 1) * 2);
Arr [l] [I]=key [I];
}
Var result=' ';
for(var i=0; iThe result +=arr [I]. Join (");
}
return result;
}
The function of decode (key, layer) {
Var arr=[];
for(var i=0; iArr. Push (new Array (key length));
};
for(var i=0; iVar m=I % ((layer 1) * 2);
Var l=m & lt; Layer? I % ((layer 1) * (2) : (layer 1) * 2 - I % ((layer 1) * 2);
Arr [l] [I]='fill';
}
for(var i=0; iVar z=0;
For (var x=0; X{
Var c=false;
For (var y=0; YIf (arr [x] [y])
{
If (z==I)
{
Arr [x] [y]=key [I];
C=true;
break;
}
Z++;
}
}
If (c)
{
break;
}
}
}
Var r='
for(var i=0; iVar m=I % ((layer 1) * 2);
Var l=m & lt; Layer? I % ((layer 1) * (2) : (layer 1) * 2 - I % ((layer 1) * 2);
R +=arr [l] [I];
}
return r;
}
Alert (encode key, (6));
Alert (decode encode (key, 6), (6));
Made a js practically unified.utilization of encryption to decrypt method, need to bring deep layer parameters
CodePudding user response:
Thank you, teacher have a than with me??