telegram
Version:
NodeJS/Browser MTProto API Telegram client library,
18 lines (17 loc) • 562 B
TypeScript
declare class IGENEW {
private ige;
constructor(key: Buffer, iv: Buffer);
/**
* Decrypts the given text in 16-bytes blocks by using the given key and 32-bytes initialization vector
* @param cipherText {Buffer}
* @returns {Buffer}
*/
decryptIge(cipherText: Buffer): Buffer;
/**
* Encrypts the given text in 16-bytes blocks by using the given key and 32-bytes initialization vector
* @param plainText {Buffer}
* @returns {Buffer}
*/
encryptIge(plainText: Buffer): Buffer;
}
export { IGENEW as IGE };