mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
fix des nopadding, cant use none
This commit is contained in:
parent
16098ac9c9
commit
7298e2db22
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ class DESDecrypt extends Operation {
|
|||
{
|
||||
"name": "Padding",
|
||||
"type": "option",
|
||||
"value": ["PKCS#7", "Null byte", "None"]
|
||||
"value": ["PKCS#7", "Null byte", "No padding"]
|
||||
},
|
||||
{
|
||||
"name": "Input",
|
||||
|
@ -92,7 +92,7 @@ Triple DES uses a key length of 24 bytes (192 bits).`);
|
|||
result = decipher.finish(function(blockSize, buffer, decrypt) {
|
||||
if (decrypt) {
|
||||
var len = buffer.length(), count = 0;
|
||||
for(var i = len - 1; i > 0; --i) {
|
||||
for(var i = len - 1; i >= 8; --i) {
|
||||
if (buffer.at(i) == "00") {
|
||||
count += 1;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue