/// /** * @module net/crypto */ /** * An inline-based implementation of the RC4 stream cipher. */ export declare class RC4 { private state; private key; private i; private j; /** * Constructs a new RC4 cipher object and initializes * the Keystream State with the given key. * @param key The key to use in the Keystream. */ constructor(key: Buffer); /** * Performs an inline cipher on the entire contents of the `data` buffer. * @param data A stream of data to cipher using the Keystream. */ cipher(data: Buffer): void; /** * Initializes the Keystream State. */ reset(): void; } /** * The RC4 Private Key used to encrypt outgoing packet. * This key is a Hex String, so should be converted to * a Buffer for use. * @example * const key = Buffer.from(OUTGOING_KEY, 'hex'); */ export declare const OUTGOING_KEY = "6a39570cc9de4ec71d64821894"; /** * The RC4 Private Key to decrypt incoming packet data. * This key is a Hex String, so should be converted to * a Buffer for use. * @example * const key = Buffer.from(INCOMING_KEY, 'hex'); */ export declare const INCOMING_KEY = "c79332b197f92ba85ed281a023"; //# sourceMappingURL=rc4.d.ts.map