"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var XORConverter = /** @class */ (function () {
    function XORConverter(key) {
        this.key = key;
    }
    XORConverter.prototype.encode = function (data) {
        for (var i = 0; i < data.length; i++) {
            data[i] ^= this.key[i % this.key.length];
        }
        return data;
    };
    XORConverter.prototype.decode = function (data) {
        return this.encode(data);
    };
    return XORConverter;
}());
exports.XORConverter = XORConverter;
