Compare commits

...
4 Commits
Author SHA1 Message Date
n1474335 2507362741 8.1.3 2018-08-19 23:08:02 +01:00
n1474335 481a4266b0 Reset progress on statechange events. Fixes #329. 2018-08-19 23:07:53 +01:00
n1474335 92d9abf43a 8.1.2 2018-08-19 22:58:35 +01:00
n1474335 5bcdd99870 'Change IP format' operation now uses the correct arguments. Fixes #332 2018-08-19 22:58:31 +01:00
5 changed files with 10 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cyberchef",
"version": "8.1.1",
"version": "8.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cyberchef",
"version": "8.1.1",
"version": "8.1.3",
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
"author": "n1474335 <n1474335@gmail.com>",
"homepage": "https://gchq.github.io/CyberChef",
+3 -1
View File
@@ -333,7 +333,7 @@ class Utils {
* Accepts hex, Base64, UTF8 and Latin1 strings.
*
* @param {string} str
* @param {string} type - One of "Hex", "Base64", "UTF8" or "Latin1"
* @param {string} type - One of "Hex", "Decimal", "Base64", "UTF8" or "Latin1"
* @returns {string}
*
* @example
@@ -350,6 +350,8 @@ class Utils {
switch (type.toLowerCase()) {
case "hex":
return Utils.byteArrayToChars(fromHex(str));
case "decimal":
return Utils.byteArrayToChars(fromDecimal(str));
case "base64":
return Utils.byteArrayToChars(fromBase64(str, null, "byteArray"));
case "utf8":
+3 -3
View File
@@ -21,7 +21,7 @@ class ChangeIPFormat extends Operation {
super();
this.name = "Change IP format";
this.module = "JSBN";
this.module = "Default";
this.description = "Convert an IP address from one format to another, e.g. <code>172.20.23.54</code> to <code>ac141736</code>";
this.inputType = "string";
this.outputType = "string";
@@ -29,12 +29,12 @@ class ChangeIPFormat extends Operation {
{
"name": "Input format",
"type": "option",
"value": ["Hex", "Raw"]
"value": ["Dotted Decimal", "Decimal", "Hex"]
},
{
"name": "Output format",
"type": "option",
"value": ["Hex", "Raw"]
"value": ["Dotted Decimal", "Decimal", "Hex"]
}
];
}
+2 -1
View File
@@ -115,7 +115,7 @@ class App {
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
* whole recipe.
*/
bake(step) {
bake(step=false) {
if (this.baking) return;
// Reset attemptHighlight flag
@@ -634,6 +634,7 @@ class App {
* @param {event} e
*/
stateChange(e) {
this.progress = 0;
this.autoBake();
// Set title