outers
Version:
outers - a all in one package for your day to day use
15 lines • 687 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// Main function
function DestroyJWT(token, cipherList) {
const positions = [5, 3, 9, 4, 7]; // List of positions
let tokenArray = token.split(""); // Split the token
cipherList.forEach((cipher, index) => {
tokenArray.splice(positions[index], 0, cipher); // Add the cipher to the token
}); // Loop through the list of supported algorithms
tokenArray = tokenArray.reverse(); // Reverse the token
const modifiedToken = tokenArray.join(""); // Join the token
return modifiedToken; // Return the modified token
}
exports.default = DestroyJWT;
//# sourceMappingURL=Destroy.js.map