joox-crypto/src/index.js

12 lines
257 B
JavaScript

const DecryptorV4 = require("./crypto/DecryptorV4");
function jooxFactory(fileBody, seed) {
if (DecryptorV4.detect(fileBody)) {
return DecryptorV4(seed);
}
throw new Error("input file not supported or invalid");
}
module.exports = jooxFactory;