mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Imports now specify the file extension to support Node v12
This commit is contained in:
parent
d7d50337f9
commit
566517d20f
469 changed files with 1098 additions and 1093 deletions
10
Gruntfile.js
10
Gruntfile.js
|
@ -404,26 +404,26 @@ module.exports = function (grunt) {
|
||||||
command: [
|
command: [
|
||||||
"echo '\n--- Regenerating config files. ---'",
|
"echo '\n--- Regenerating config files. ---'",
|
||||||
"echo [] > src/core/config/OperationConfig.json",
|
"echo [] > src/core/config/OperationConfig.json",
|
||||||
"node --experimental-modules --no-warnings --no-deprecation --es-module-specifier-resolution=node src/core/config/scripts/generateOpsIndex.mjs",
|
"node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateOpsIndex.mjs",
|
||||||
"node --experimental-modules --no-warnings --no-deprecation --es-module-specifier-resolution=node src/core/config/scripts/generateConfig.mjs",
|
"node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateConfig.mjs",
|
||||||
"echo '--- Config scripts finished. ---\n'"
|
"echo '--- Config scripts finished. ---\n'"
|
||||||
].join(";")
|
].join(";")
|
||||||
},
|
},
|
||||||
generateNodeIndex: {
|
generateNodeIndex: {
|
||||||
command: [
|
command: [
|
||||||
"echo '\n--- Regenerating node index ---'",
|
"echo '\n--- Regenerating node index ---'",
|
||||||
"node --experimental-modules --no-warnings --no-deprecation --es-module-specifier-resolution=node src/node/config/scripts/generateNodeIndex.mjs",
|
"node --experimental-modules --no-warnings --no-deprecation src/node/config/scripts/generateNodeIndex.mjs",
|
||||||
"echo '--- Node index generated. ---\n'"
|
"echo '--- Node index generated. ---\n'"
|
||||||
].join(";"),
|
].join(";"),
|
||||||
},
|
},
|
||||||
opTests: {
|
opTests: {
|
||||||
command: "node --experimental-modules --no-warnings --no-deprecation --es-module-specifier-resolution=node tests/operations/index.mjs"
|
command: "node --experimental-modules --no-warnings --no-deprecation tests/operations/index.mjs"
|
||||||
},
|
},
|
||||||
browserTests: {
|
browserTests: {
|
||||||
command: "./node_modules/.bin/nightwatch --env prod"
|
command: "./node_modules/.bin/nightwatch --env prod"
|
||||||
},
|
},
|
||||||
nodeTests: {
|
nodeTests: {
|
||||||
command: "node --experimental-modules --no-warnings --no-deprecation --es-module-specifier-resolution=node tests/node/index.mjs"
|
command: "node --experimental-modules --no-warnings --no-deprecation tests/node/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Dish from "./Dish";
|
import Dish from "./Dish.mjs";
|
||||||
import Recipe from "./Recipe";
|
import Recipe from "./Recipe.mjs";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { isWorkerEnvironment } from "./Utils";
|
import { isWorkerEnvironment } from "./Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main controller for CyberChef.
|
* The main controller for CyberChef.
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Chef from "./Chef";
|
import Chef from "./Chef.mjs";
|
||||||
import OperationConfig from "./config/OperationConfig.json";
|
import OperationConfig from "./config/OperationConfig.json";
|
||||||
import OpModules from "./config/modules/OpModules";
|
import OpModules from "./config/modules/OpModules.mjs";
|
||||||
|
|
||||||
// Add ">" to the start of all log messages in the Chef Worker
|
// Add ">" to the start of all log messages in the Chef Worker
|
||||||
import loglevelMessagePrefix from "loglevel-message-prefix";
|
import loglevelMessagePrefix from "loglevel-message-prefix";
|
||||||
|
|
|
@ -5,22 +5,20 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils, { isNodeEnvironment } from "./Utils";
|
import Utils, { isNodeEnvironment } from "./Utils.mjs";
|
||||||
import DishError from "./errors/DishError";
|
import DishError from "./errors/DishError.mjs";
|
||||||
import BigNumber from "bignumber.js";
|
import BigNumber from "bignumber.js";
|
||||||
import { detectFileType } from "./lib/FileType";
|
import { detectFileType } from "./lib/FileType.mjs";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
|
|
||||||
import {
|
import DishByteArray from "./dishTypes/DishByteArray.mjs";
|
||||||
DishByteArray,
|
import DishBigNumber from "./dishTypes/DishBigNumber.mjs";
|
||||||
DishBigNumber,
|
import DishFile from "./dishTypes/DishFile.mjs";
|
||||||
DishFile,
|
import DishHTML from "./dishTypes/DishHTML.mjs";
|
||||||
DishHTML,
|
import DishJSON from "./dishTypes/DishJSON.mjs";
|
||||||
DishJSON,
|
import DishListFile from "./dishTypes/DishListFile.mjs";
|
||||||
DishListFile,
|
import DishNumber from "./dishTypes/DishNumber.mjs";
|
||||||
DishNumber,
|
import DishString from "./dishTypes/DishString.mjs";
|
||||||
DishString,
|
|
||||||
} from "./dishTypes";
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -234,15 +232,22 @@ class Dish {
|
||||||
case Dish.LIST_FILE:
|
case Dish.LIST_FILE:
|
||||||
title = `${this.value.length} file(s)`;
|
title = `${this.value.length} file(s)`;
|
||||||
break;
|
break;
|
||||||
|
case Dish.JSON:
|
||||||
|
title = "application/json";
|
||||||
|
break;
|
||||||
case Dish.ARRAY_BUFFER:
|
case Dish.ARRAY_BUFFER:
|
||||||
case Dish.BYTE_ARRAY:
|
case Dish.BYTE_ARRAY:
|
||||||
title = this.detectDishType();
|
title = this.detectDishType();
|
||||||
if (title !== null) break;
|
if (title !== null) break;
|
||||||
// fall through if no mime type was detected
|
// fall through if no mime type was detected
|
||||||
default:
|
default:
|
||||||
cloned = this.clone();
|
try {
|
||||||
cloned.value = cloned.value.slice(0, 256);
|
cloned = this.clone();
|
||||||
title = await cloned.get(Dish.STRING);
|
cloned.value = cloned.value.slice(0, 256);
|
||||||
|
title = await cloned.get(Dish.STRING);
|
||||||
|
} catch (err) {
|
||||||
|
log.error(`${Dish.enumLookup(this.type)} cannot be sliced. ${err}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return title.slice(0, maxLength);
|
return title.slice(0, maxLength);
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "./Utils";
|
import Utils from "./Utils.mjs";
|
||||||
import {fromHex} from "./lib/Hex";
|
import {fromHex} from "./lib/Hex.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The arguments to operations.
|
* The arguments to operations.
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Dish from "./Dish";
|
import Dish from "./Dish.mjs";
|
||||||
import Ingredient from "./Ingredient";
|
import Ingredient from "./Ingredient.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Operation specified by the user to be run.
|
* The Operation specified by the user to be run.
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationConfig from "./config/OperationConfig.json";
|
import OperationConfig from "./config/OperationConfig.json";
|
||||||
import OperationError from "./errors/OperationError";
|
import OperationError from "./errors/OperationError.mjs";
|
||||||
import Operation from "./Operation";
|
import Operation from "./Operation.mjs";
|
||||||
import DishError from "./errors/DishError";
|
import DishError from "./errors/DishError.mjs";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { isWorkerEnvironment } from "./Utils";
|
import { isWorkerEnvironment } from "./Utils.mjs";
|
||||||
|
|
||||||
// Cache container for modules
|
// Cache container for modules
|
||||||
let modules = null;
|
let modules = null;
|
||||||
|
@ -62,7 +62,7 @@ class Recipe {
|
||||||
if (!modules) {
|
if (!modules) {
|
||||||
// Using Webpack Magic Comments to force the dynamic import to be included in the main chunk
|
// Using Webpack Magic Comments to force the dynamic import to be included in the main chunk
|
||||||
// https://webpack.js.org/api/module-methods/
|
// https://webpack.js.org/api/module-methods/
|
||||||
modules = await import(/* webpackMode: "eager" */ "./config/modules/OpModules");
|
modules = await import(/* webpackMode: "eager" */ "./config/modules/OpModules.mjs");
|
||||||
modules = modules.default;
|
modules = modules.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import utf8 from "utf8";
|
import utf8 from "utf8";
|
||||||
import {fromBase64, toBase64} from "./lib/Base64";
|
import {fromBase64, toBase64} from "./lib/Base64.mjs";
|
||||||
import {fromHex} from "./lib/Hex";
|
import {fromHex} from "./lib/Hex.mjs";
|
||||||
import {fromDecimal} from "./lib/Decimal";
|
import {fromDecimal} from "./lib/Decimal.mjs";
|
||||||
import {fromBinary} from "./lib/Binary";
|
import {fromBinary} from "./lib/Binary.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility functions for use in operations, the core framework and the stage.
|
* Utility functions for use in operations, the core framework and the stage.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
import * as Ops from "../../operations/index";
|
import * as Ops from "../../operations/index.mjs";
|
||||||
|
|
||||||
const dir = path.join(process.cwd() + "/src/core/config/");
|
const dir = path.join(process.cwd() + "/src/core/config/");
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
|
@ -84,7 +84,7 @@ for (const module in modules) {
|
||||||
|
|
||||||
for (const opName in modules[module]) {
|
for (const opName in modules[module]) {
|
||||||
const objName = modules[module][opName];
|
const objName = modules[module][opName];
|
||||||
code += `import ${objName} from "../../operations/${objName}";\n`;
|
code += `import ${objName} from "../../operations/${objName}.mjs";\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
code += `
|
code += `
|
||||||
|
@ -124,7 +124,7 @@ let opModulesCode = `/**
|
||||||
`;
|
`;
|
||||||
|
|
||||||
for (const module in modules) {
|
for (const module in modules) {
|
||||||
opModulesCode += `import ${module}Module from "./${module}";\n`;
|
opModulesCode += `import ${module}Module from "./${module}.mjs";\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
opModulesCode += `
|
opModulesCode += `
|
||||||
|
|
|
@ -39,7 +39,7 @@ let code = `/**
|
||||||
`;
|
`;
|
||||||
|
|
||||||
opObjs.forEach(obj => {
|
opObjs.forEach(obj => {
|
||||||
code += `import ${obj} from "./${obj}";\n`;
|
code += `import ${obj} from "./${obj}.mjs";\n`;
|
||||||
});
|
});
|
||||||
|
|
||||||
code += `
|
code += `
|
||||||
|
|
|
@ -13,7 +13,7 @@ import colors from "colors";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import EscapeString from "../../operations/EscapeString";
|
import EscapeString from "../../operations/EscapeString.mjs";
|
||||||
|
|
||||||
|
|
||||||
const dir = path.join(process.cwd() + "/src/core/operations/");
|
const dir = path.join(process.cwd() + "/src/core/operations/");
|
||||||
|
@ -130,8 +130,8 @@ prompt.get(schema, (err, result) => {
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${result.opName} operation
|
* ${result.opName} operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import BigNumber from "bignumber.js";
|
import BigNumber from "bignumber.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for ArrayBuffer Dishes
|
* Translation methods for ArrayBuffer Dishes
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import Utils, { isNodeEnvironment } from "../Utils";
|
import Utils, { isNodeEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for file Dishes
|
* Translation methods for file Dishes
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishString from "./DishString";
|
import DishString from "./DishString.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for HTML Dishes
|
* Translation methods for HTML Dishes
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for JSON dishes
|
* Translation methods for JSON dishes
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import { isNodeEnvironment } from "../Utils.mjs";
|
import { isNodeEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for number dishes
|
* Translation methods for number dishes
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import DishType from "./DishType";
|
import DishType from "./DishType.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for string dishes
|
* Translation methods for string dishes
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import DishByteArray from "./DishByteArray";
|
import DishByteArray from "./DishByteArray.mjs";
|
||||||
import DishBigNumber from "./DishBigNumber";
|
import DishBigNumber from "./DishBigNumber.mjs";
|
||||||
import DishFile from "./DishFile";
|
import DishFile from "./DishFile.mjs";
|
||||||
import DishHTML from "./DishHTML";
|
import DishHTML from "./DishHTML.mjs";
|
||||||
import DishJSON from "./DishJSON";
|
import DishJSON from "./DishJSON.mjs";
|
||||||
import DishListFile from "./DishListFile";
|
import DishListFile from "./DishListFile.mjs";
|
||||||
import DishNumber from "./DishNumber";
|
import DishNumber from "./DishNumber.mjs";
|
||||||
import DishString from "./DishString";
|
import DishString from "./DishString.mjs";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
DishByteArray,
|
DishByteArray,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import BigNumber from "bignumber.js";
|
import BigNumber from "bignumber.js";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {Rotor, Plugboard, a2i, i2a} from "./Enigma";
|
import {Rotor, Plugboard, a2i, i2a} from "./Enigma.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience/optimisation subclass of Rotor
|
* Convenience/optimisation subclass of Rotor
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import CryptoJS from "crypto-js";
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import geohash from "ngeohash";
|
import geohash from "ngeohash";
|
||||||
import geodesy from "geodesy";
|
import geodesy from "geodesy";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Co-ordinate formats
|
* Co-ordinate formats
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
* @copyright Crown Copyright 2019
|
* @copyright Crown Copyright 2019
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provided default Enigma rotor set.
|
* Provided default Enigma rotor set.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import Stream from "./Stream";
|
import Stream from "./Stream.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A categorised table of file types, including signatures to identify them and functions
|
* A categorised table of file types, including signatures to identify them and functions
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import {FILE_SIGNATURES} from "./FileSignatures";
|
import {FILE_SIGNATURES} from "./FileSignatures.mjs";
|
||||||
import {sendStatusMessage} from "../Utils";
|
import {sendStatusMessage} from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import CryptoApi from "crypto-api/src/crypto-api";
|
import CryptoApi from "crypto-api/src/crypto-api.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an IPv4 CIDR range (e.g. 192.168.0.0/24) and displays information about it.
|
* Parses an IPv4 CIDR range (e.g. 192.168.0.0/24) and displays information about it.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gaussian blurs an image.
|
* Gaussian blurs an image.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import OperationConfig from "../config/OperationConfig.json";
|
import OperationConfig from "../config/OperationConfig.json";
|
||||||
import Utils, { isWorkerEnvironment } from "../Utils";
|
import Utils, { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import Recipe from "../Recipe";
|
import Recipe from "../Recipe.mjs";
|
||||||
import Dish from "../Dish";
|
import Dish from "../Dish.mjs";
|
||||||
import {detectFileType} from "./FileType";
|
import {detectFileType} from "./FileType.mjs";
|
||||||
import chiSquared from "chi-squared";
|
import chiSquared from "chi-squared";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import kbpgp from "kbpgp";
|
import kbpgp from "kbpgp";
|
||||||
import * as es6promisify from "es6-promisify";
|
import * as es6promisify from "es6-promisify";
|
||||||
const promisify = es6promisify.default ? es6promisify.default.promisify : es6promisify.promisify;
|
const promisify = es6promisify.default ? es6promisify.default.promisify : es6promisify.promisify;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Protobuf lib. Contains functions to decode protobuf serialised
|
* Protobuf lib. Contains functions to decode protobuf serialised
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { toHex, fromHex } from "./Hex";
|
import { toHex, fromHex } from "./Hex.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats Distinguished Name (DN) strings.
|
* Formats Distinguished Name (DN) strings.
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import jsQR from "jsqr";
|
import jsQR from "jsqr";
|
||||||
import qr from "qr-image";
|
import qr from "qr-image";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses a QR code image from an image
|
* Parses a QR code image from an image
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* @copyright Crown Copyright 2019
|
* @copyright Crown Copyright 2019
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import * as Enigma from "../lib/Enigma";
|
import * as Enigma from "../lib/Enigma.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A set of example Typex rotors. No Typex rotor wirings are publicly available, so these are
|
* A set of example Typex rotors. No Typex rotor wirings are publicly available, so these are
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min";
|
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min.js";
|
||||||
|
|
||||||
const Zlib = zlibAndGzip.Zlib;
|
const Zlib = zlibAndGzip.Zlib;
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {DELIM_OPTIONS} from "../lib/Delim";
|
import {DELIM_OPTIONS} from "../lib/Delim.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A1Z26 Cipher Decode operation
|
* A1Z26 Cipher Decode operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {DELIM_OPTIONS} from "../lib/Delim";
|
import {DELIM_OPTIONS} from "../lib/Delim.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A1Z26 Cipher Encode operation
|
* A1Z26 Cipher Encode operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import { bitOp, add, BITWISE_OP_DELIMS } from "../lib/BitwiseOp";
|
import { bitOp, add, BITWISE_OP_DELIMS } from "../lib/BitwiseOp.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ADD operation
|
* ADD operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import forge from "node-forge/dist/forge.min.js";
|
import forge from "node-forge/dist/forge.min.js";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AES Decrypt operation
|
* AES Decrypt operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import forge from "node-forge/dist/forge.min.js";
|
import forge from "node-forge/dist/forge.min.js";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AES Encrypt operation
|
* AES Encrypt operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import { bitOp, and, BITWISE_OP_DELIMS } from "../lib/BitwiseOp";
|
import { bitOp, and, BITWISE_OP_DELIMS } from "../lib/BitwiseOp.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AND operation
|
* AND operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add line numbers operation
|
* Add line numbers operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adler-32 Checksum operation
|
* Adler-32 Checksum operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Affine Cipher Decode operation
|
* Affine Cipher Decode operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import { affineEncode } from "../lib/Ciphers";
|
import { affineEncode } from "../lib/Ciphers.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Affine Cipher Encode operation
|
* Affine Cipher Encode operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Analyse hash operation
|
* Analyse hash operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import { affineEncode } from "../lib/Ciphers";
|
import { affineEncode } from "../lib/Ciphers.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Atbash Cipher operation
|
* Atbash Cipher operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import blakejs from "blakejs";
|
import blakejs from "blakejs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BLAKE2b operation
|
* BLAKE2b operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import blakejs from "blakejs";
|
import blakejs from "blakejs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BLAKE2s Operation
|
* BLAKE2s Operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import bson from "bson";
|
import bson from "bson";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BSON deserialise operation
|
* BSON deserialise operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import bson from "bson";
|
import bson from "bson";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BSON serialise operation
|
* BSON serialise operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import bcrypt from "bcryptjs";
|
import bcrypt from "bcryptjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bcrypt operation
|
* Bcrypt operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import bcrypt from "bcryptjs";
|
import bcrypt from "bcryptjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import bcrypt from "bcryptjs";
|
import bcrypt from "bcryptjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import { genPolybiusSquare } from "../lib/Ciphers";
|
import { genPolybiusSquare } from "../lib/Ciphers.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bifid Cipher Decode operation
|
* Bifid Cipher Decode operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { genPolybiusSquare } from "../lib/Ciphers";
|
import { genPolybiusSquare } from "../lib/Ciphers.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bifid Cipher Encode operation
|
* Bifid Cipher Encode operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bit shift left operation
|
* Bit shift left operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bit shift right operation
|
* Bit shift right operation
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { Blowfish } from "../vendor/Blowfish";
|
import { Blowfish } from "../vendor/Blowfish.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import { toHexFast } from "../lib/Hex";
|
import { toHexFast } from "../lib/Hex.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup table for Blowfish output types.
|
* Lookup table for Blowfish output types.
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { Blowfish } from "../vendor/Blowfish";
|
import { Blowfish } from "../vendor/Blowfish.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup table for Blowfish output types.
|
* Lookup table for Blowfish output types.
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
import { gaussianBlur } from "../lib/ImageManipulation";
|
import { gaussianBlur } from "../lib/ImageManipulation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Blur Image operation
|
* Blur Image operation
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import { BombeMachine } from "../lib/Bombe";
|
import { BombeMachine } from "../lib/Bombe.mjs";
|
||||||
import { ROTORS, ROTORS_FOURTH, REFLECTORS, Reflector } from "../lib/Enigma";
|
import { ROTORS, ROTORS_FOURTH, REFLECTORS, Reflector } from "../lib/Enigma.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bombe operation
|
* Bombe operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Bzip2 from "libbzip2-wasm";
|
import Bzip2 from "libbzip2-wasm";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bzip2 Compress operation
|
* Bzip2 Compress operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Bzip2 from "libbzip2-wasm";
|
import Bzip2 from "libbzip2-wasm";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bzip2 Decompress operation
|
* Bzip2 Decompress operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import JSCRC from "js-crc";
|
import JSCRC from "js-crc";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import JSCRC from "js-crc";
|
import JSCRC from "js-crc";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
import { toHexFast } from "../lib/Hex";
|
import { toHexFast } from "../lib/Hex.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CRC-8 Checksum operation
|
* CRC-8 Checksum operation
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import vkbeautify from "vkbeautify";
|
import vkbeautify from "vkbeautify";
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSS Beautify operation
|
* CSS Beautify operation
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import vkbeautify from "vkbeautify";
|
import vkbeautify from "vkbeautify";
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSS Minify operation
|
* CSS Minify operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import xmldom from "xmldom";
|
import xmldom from "xmldom";
|
||||||
import nwmatcher from "nwmatcher";
|
import nwmatcher from "nwmatcher";
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSV to JSON operation
|
* CSV to JSON operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import ctphjs from "ctph.js";
|
import ctphjs from "ctph.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set cartesian product operation
|
* Set cartesian product operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {fromHex} from "../lib/Hex";
|
import {fromHex} from "../lib/Hex.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change IP format operation
|
* Change IP format operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chi Square operation
|
* Chi Square operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import cptable from "../vendor/js-codepage/cptable.js";
|
import cptable from "../vendor/js-codepage/cptable.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import cptable from "../vendor/js-codepage/cptable.js";
|
import cptable from "../vendor/js-codepage/cptable.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Comment operation
|
* Comment operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {HASH_DELIM_OPTIONS} from "../lib/Delim";
|
import {HASH_DELIM_OPTIONS} from "../lib/Delim.mjs";
|
||||||
import ctphjs from "ctph.js";
|
import ctphjs from "ctph.js";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compare CTPH hashes operation
|
* Compare CTPH hashes operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
import {HASH_DELIM_OPTIONS} from "../lib/Delim";
|
import {HASH_DELIM_OPTIONS} from "../lib/Delim.mjs";
|
||||||
import ssdeepjs from "ssdeep.js";
|
import ssdeepjs from "ssdeep.js";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compare SSDEEP hashes operation
|
* Compare SSDEEP hashes operation
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Dish from "../Dish";
|
import Dish from "../Dish.mjs";
|
||||||
import { getLabelIndex } from "../lib/FlowControl";
|
import { getLabelIndex } from "../lib/FlowControl.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Conditional Jump operation
|
* Conditional Jump operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64.mjs";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert area operation
|
* Convert area operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates";
|
import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert co-ordinate format operation
|
* Convert co-ordinate format operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert data units operation
|
* Convert data units operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert distance operation
|
* Convert distance operation
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert mass operation
|
* Convert mass operation
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert speed operation
|
* Convert speed operation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import Utils from "../Utils";
|
import Utils from "../Utils.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count occurrences operation
|
* Count occurrences operation
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64.mjs";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isImage } from "../lib/FileType";
|
import { isImage } from "../lib/FileType.mjs";
|
||||||
import { toBase64 } from "../lib/Base64.mjs";
|
import { toBase64 } from "../lib/Base64.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import jimp from "jimp";
|
import jimp from "jimp";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue