@runejs/common
Version:
Common logging, networking, compression, and other miscellaneous functionality for RuneJS.
11 lines • 567 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEncryptionMethod = exports.FileEncryption = void 0;
var FileEncryption;
(function (FileEncryption) {
FileEncryption[FileEncryption["none"] = 0] = "none";
FileEncryption[FileEncryption["xtea"] = 1] = "xtea";
})(FileEncryption = exports.FileEncryption || (exports.FileEncryption = {}));
const getEncryptionMethod = (encryption) => encryption === 1 ? 'xtea' : 'none';
exports.getEncryptionMethod = getEncryptionMethod;
//# sourceMappingURL=encryption-method.js.map