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 18:08:50 +01:00
|
|
|
const Chef = require("../core/Chef.js").default;
|
2017-03-06 12:45:51 +00:00
|
|
|
|
2017-03-23 17:52:20 +00:00
|
|
|
const CyberChef = module.exports = {
|
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(
|
|
|
|
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
|
|
|
};
|