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