Skip to content

Commit 328c0ad

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 0a7a0ac + a5703cb commit 328c0ad

27 files changed

+3791
-47
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ docs/*
66
!docs/*.conf.json
77
!docs/*.ico
88
.vscode
9+
.*.swp
10+
.DS_Store
911
src/core/config/modules/*
1012
src/core/config/OperationConfig.json
1113
src/core/operations/index.mjs

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
All major and minor version changes will be documented in this file. Details of patch-level version changes can be found in [commit messages](https://github.com/gchq/CyberChef/commits/master).
33

44

5+
### [8.27.0] - 2019-03-14
6+
- 'Enigma', 'Typex', 'Bombe' and 'Multiple Bombe' operations added [@s2224834] | [#516]
7+
- See [this wiki article](https://github.com/gchq/CyberChef/wiki/Enigma,-the-Bombe,-and-Typex) for a full explanation of these operations.
8+
- New Bombe-style loading animation added for long-running operations [@n1474335]
9+
- New operation argument types added: `populateMultiOption` and `argSelector` [@n1474335]
10+
11+
### [8.26.0] - 2019-03-09
12+
- Various image manipulation operations added [@j433866] | [#506]
13+
14+
### [8.25.0] - 2019-03-09
15+
- 'Extract Files' operation added and more file formats supported [@n1474335] | [#440]
16+
517
### [8.24.0] - 2019-02-08
618
- 'DNS over HTTPS' operation added [@h345983745] | [#489]
719

@@ -106,6 +118,9 @@ All major and minor version changes will be documented in this file. Details of
106118

107119

108120

121+
[8.27.0]: https://github.com/gchq/CyberChef/releases/tag/v8.27.0
122+
[8.26.0]: https://github.com/gchq/CyberChef/releases/tag/v8.26.0
123+
[8.25.0]: https://github.com/gchq/CyberChef/releases/tag/v8.25.0
109124
[8.24.0]: https://github.com/gchq/CyberChef/releases/tag/v8.24.0
110125
[8.23.1]: https://github.com/gchq/CyberChef/releases/tag/v8.23.1
111126
[8.23.0]: https://github.com/gchq/CyberChef/releases/tag/v8.23.0
@@ -142,6 +157,7 @@ All major and minor version changes will be documented in this file. Details of
142157
[@j433866]: https://github.com/j433866
143158
[@GCHQ77703]: https://github.com/GCHQ77703
144159
[@h345983745]: https://github.com/h345983745
160+
[@s2224834]: https://github.com/s2224834
145161
[@artemisbot]: https://github.com/artemisbot
146162
[@picapi]: https://github.com/picapi
147163
[@Dachande663]: https://github.com/Dachande663
@@ -180,6 +196,7 @@ All major and minor version changes will be documented in this file. Details of
180196
[#394]: https://github.com/gchq/CyberChef/pull/394
181197
[#428]: https://github.com/gchq/CyberChef/pull/428
182198
[#439]: https://github.com/gchq/CyberChef/pull/439
199+
[#440]: https://github.com/gchq/CyberChef/pull/440
183200
[#441]: https://github.com/gchq/CyberChef/pull/441
184201
[#443]: https://github.com/gchq/CyberChef/pull/443
185202
[#446]: https://github.com/gchq/CyberChef/pull/446
@@ -192,3 +209,5 @@ All major and minor version changes will be documented in this file. Details of
192209
[#468]: https://github.com/gchq/CyberChef/pull/468
193210
[#476]: https://github.com/gchq/CyberChef/pull/476
194211
[#489]: https://github.com/gchq/CyberChef/pull/489
212+
[#506]: https://github.com/gchq/CyberChef/pull/506
213+
[#516]: https://github.com/gchq/CyberChef/pull/516

package-lock.json

+29-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cyberchef",
3-
"version": "8.26.3",
3+
"version": "8.27.0",
44
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
55
"author": "n1474335 <[email protected]>",
66
"homepage": "https://gchq.github.io/CyberChef",
@@ -69,6 +69,7 @@
6969
"sass-loader": "^7.1.0",
7070
"sitemap": "^2.1.0",
7171
"style-loader": "^0.23.1",
72+
"svg-url-loader": "^2.3.2",
7273
"url-loader": "^1.1.2",
7374
"web-resource-inliner": "^4.2.1",
7475
"webpack": "^4.28.3",

src/core/Chef.mjs

+12-9
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,26 @@ class Chef {
8989
progress = err.progress;
9090
}
9191

92-
// Depending on the size of the output, we may send it back as a string or an ArrayBuffer.
93-
// This can prevent unnecessary casting as an ArrayBuffer can be easily downloaded as a file.
94-
// The threshold is specified in KiB.
95-
const threshold = (options.ioDisplayThreshold || 1024) * 1024;
96-
const returnType = this.dish.size > threshold ? Dish.ARRAY_BUFFER : Dish.STRING;
97-
9892
// Create a raw version of the dish, unpresented
9993
const rawDish = this.dish.clone();
10094

10195
// Present the raw result
10296
await recipe.present(this.dish);
10397

98+
// Depending on the size of the output, we may send it back as a string or an ArrayBuffer.
99+
// This can prevent unnecessary casting as an ArrayBuffer can be easily downloaded as a file.
100+
// The threshold is specified in KiB.
101+
const threshold = (options.ioDisplayThreshold || 1024) * 1024;
102+
const returnType =
103+
this.dish.size > threshold ?
104+
Dish.ARRAY_BUFFER :
105+
this.dish.type === Dish.HTML ?
106+
Dish.HTML :
107+
Dish.STRING;
108+
104109
return {
105110
dish: rawDish,
106-
result: this.dish.type === Dish.HTML ?
107-
await this.dish.get(Dish.HTML, notUTF8) :
108-
await this.dish.get(returnType, notUTF8),
111+
result: await this.dish.get(returnType, notUTF8),
109112
type: Dish.enumLookup(this.dish.type),
110113
progress: progress,
111114
duration: new Date().getTime() - startTime,

src/core/config/Categories.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@
102102
"JWT Decode",
103103
"Citrix CTX1 Encode",
104104
"Citrix CTX1 Decode",
105-
"Pseudo-Random Number Generator"
105+
"Pseudo-Random Number Generator",
106+
"Enigma",
107+
"Bombe",
108+
"Multiple Bombe",
109+
"Typex"
106110
]
107111
},
108112
{

0 commit comments

Comments
 (0)