// Crypto.js - a RC4 impl in node js for Clash Royale!
class myc{
	constuctor () {
		this.RC4 = new RC4Engine.Engine;
		this.key = new Buffer(Config.server.cryptoKey, 'utf8');
		this.nonce = new Buffer("nonce", "utf8");
		this.RC4.init(myKey+myNonce);
		this.RC4.encrypt(myKey+myNonce);
	}

	
	decrypt (data) {
		return this.RC4.decrypt(data);
	}

	encrypt (data) {
		return this.RC4.encrypt(data);
	}
}
module.exports = myc;