2017-03-06 13:45:51 +01:00
|
|
|
/**
|
2017-03-21 23:41:44 +01:00
|
|
|
* Node view for CyberChef.
|
|
|
|
*
|
2017-03-06 13:45:51 +01:00
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2017
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
2017-03-25 14:56:46 +01:00
|
|
|
require("babel-polyfill");
|
2017-03-06 13:45:51 +01:00
|
|
|
|
2017-04-13 19:08:50 +02:00
|
|
|
const Chef = require("../core/Chef.js").default;
|
2017-03-06 13:45:51 +01:00
|
|
|
|
2017-03-23 18:52:20 +01:00
|
|
|
const CyberChef = module.exports = {
|
2017-03-07 12:27:36 +01:00
|
|
|
|
2017-03-21 23:41:44 +01:00
|
|
|
bake: function(input, recipeConfig) {
|
|
|
|
this.chef = new Chef();
|
2017-03-31 18:00:23 +02:00
|
|
|
return this.chef.bake(
|
2017-07-24 15:49:16 +02:00
|
|
|
input,
|
|
|
|
recipeConfig,
|
|
|
|
{},
|
|
|
|
0,
|
|
|
|
false
|
|
|
|
);
|
2017-03-21 23:41:44 +01:00
|
|
|
}
|
2017-03-07 12:27:36 +01:00
|
|
|
|
2017-03-21 23:41:44 +01:00
|
|
|
};
|