cyberchef 9.34.1 → 9.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ All major and minor version changes will be documented in this file. Details of
13
13
 
14
14
  ## Details
15
15
 
16
+ ### [9.36.0] - 2022-03-29
17
+ - 'SIGABA' operation added [@hettysymes] | [#934]
18
+
19
+ ### [9.35.0] - 2022-03-28
20
+ - 'To Base45' and 'From Base45' operations added [@t-8ch] | [#1242]
21
+
16
22
  ### [9.34.0] - 2022-03-28
17
23
  - 'Get All Casings' operation added [@n1073645] | [#1065]
18
24
 
@@ -278,6 +284,8 @@ All major and minor version changes will be documented in this file. Details of
278
284
 
279
285
 
280
286
 
287
+ [9.36.0]: https://github.com/gchq/CyberChef/releases/tag/v9.36.0
288
+ [9.35.0]: https://github.com/gchq/CyberChef/releases/tag/v9.35.0
281
289
  [9.34.0]: https://github.com/gchq/CyberChef/releases/tag/v9.34.0
282
290
  [9.33.0]: https://github.com/gchq/CyberChef/releases/tag/v9.33.0
283
291
  [9.32.0]: https://github.com/gchq/CyberChef/releases/tag/v9.32.0
@@ -395,6 +403,7 @@ All major and minor version changes will be documented in this file. Details of
395
403
  [@Danh4]: https://github.com/Danh4
396
404
  [@john19696]: https://github.com/john19696
397
405
  [@t-8ch]: https://github.com/t-8ch
406
+ [@hettysymes]: https://github.com/hettysymes
398
407
 
399
408
  [8ad18b]: https://github.com/gchq/CyberChef/commit/8ad18bc7db6d9ff184ba3518686293a7685bf7b7
400
409
  [9a33498]: https://github.com/gchq/CyberChef/commit/9a33498fed26a8df9c9f35f39a78a174bf50a513
@@ -469,6 +478,7 @@ All major and minor version changes will be documented in this file. Details of
469
478
  [#865]: https://github.com/gchq/CyberChef/pull/865
470
479
  [#912]: https://github.com/gchq/CyberChef/pull/912
471
480
  [#917]: https://github.com/gchq/CyberChef/pull/917
481
+ [#934]: https://github.com/gchq/CyberChef/pull/934
472
482
  [#948]: https://github.com/gchq/CyberChef/pull/948
473
483
  [#952]: https://github.com/gchq/CyberChef/pull/952
474
484
  [#965]: https://github.com/gchq/CyberChef/pull/965
@@ -482,6 +492,7 @@ All major and minor version changes will be documented in this file. Details of
482
492
  [#1049]: https://github.com/gchq/CyberChef/pull/1049
483
493
  [#1065]: https://github.com/gchq/CyberChef/pull/1065
484
494
  [#1083]: https://github.com/gchq/CyberChef/pull/1083
495
+ [#1242]: https://github.com/gchq/CyberChef/pull/1242
485
496
  [#1244]: https://github.com/gchq/CyberChef/pull/1244
486
497
  [#1313]: https://github.com/gchq/CyberChef/pull/1313
487
498
  [#1326]: https://github.com/gchq/CyberChef/pull/1326
package/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![](https://github.com/gchq/CyberChef/workflows/Master%20Build,%20Test%20&%20Deploy/badge.svg)](https://github.com/gchq/CyberChef/actions?query=workflow%3A%22Master+Build%2C+Test+%26+Deploy%22)
4
4
  [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/gchq/CyberChef.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/gchq/CyberChef/context:javascript)
5
- [![dependencies Status](https://david-dm.org/gchq/CyberChef/status.svg)](https://david-dm.org/gchq/CyberChef)
6
5
  [![npm](https://img.shields.io/npm/v/cyberchef.svg)](https://www.npmjs.com/package/cyberchef)
7
6
  [![](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/gchq/CyberChef/blob/master/LICENSE)
8
7
  [![Gitter](https://badges.gitter.im/gchq/CyberChef.svg)](https://gitter.im/gchq/CyberChef?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberchef",
3
- "version": "9.34.1",
3
+ "version": "9.36.0",
4
4
  "description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
5
5
  "author": "n1474335 <n1474335@gmail.com>",
6
6
  "homepage": "https://gchq.github.io/CyberChef",
@@ -723,7 +723,8 @@ class Utils {
723
723
  }
724
724
 
725
725
  if (removeScriptAndStyle) {
726
- htmlStr = recursiveRemove(/<(script|style)[^>]*>.*?<\/(script|style)>/gi, htmlStr);
726
+ htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script>/gi, htmlStr);
727
+ htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style>/gi, htmlStr);
727
728
  }
728
729
  return htmlStr.replace(/<[^>]+>/g, "");
729
730
  }
@@ -1206,6 +1207,30 @@ class Utils {
1206
1207
  }[token];
1207
1208
  }
1208
1209
 
1210
+ /**
1211
+ * Iterate object in chunks of given size.
1212
+ *
1213
+ * @param {Iterable} iterable
1214
+ * @param {number} chunksize
1215
+ */
1216
+ static* chunked(iterable, chunksize) {
1217
+ const iterator = iterable[Symbol.iterator]();
1218
+ while (true) {
1219
+ const res = [];
1220
+ for (let i = 0; i < chunksize; i++) {
1221
+ const next = iterator.next();
1222
+ if (next.done) {
1223
+ break;
1224
+ }
1225
+ res.push(next.value);
1226
+ }
1227
+ if (res.length) {
1228
+ yield res;
1229
+ } else {
1230
+ return;
1231
+ }
1232
+ }
1233
+ }
1209
1234
  }
1210
1235
 
1211
1236
  /**
@@ -20,6 +20,8 @@
20
20
  "From Octal",
21
21
  "To Base32",
22
22
  "From Base32",
23
+ "To Base45",
24
+ "From Base45",
23
25
  "To Base58",
24
26
  "From Base58",
25
27
  "To Base62",
@@ -118,7 +120,8 @@
118
120
  "Multiple Bombe",
119
121
  "Typex",
120
122
  "Lorenz",
121
- "Colossus"
123
+ "Colossus",
124
+ "SIGABA"
122
125
  ]
123
126
  },
124
127
  {