@mtcute/crypto-node
TypeScript icon, indicating that this package has built-in type declarations

0.17.0 • Public • Published

@mtcute/crypto-node

📖 API Reference

Native extension for NodeJS that improves performance of the most used cryptographic mode in Telegram (IGE), which is not implemented directly by OpenSSL.

Uses OpenSSL under the hood to provide maximum performance

Installation

You will need all the pre-requisites for node-gyp. Pre-built packages are currently not available.

Then, install the package as usual. The native library will be built automatically.

Usage

import { TelegramClient } from '@mtcute/core'
import { NodeNativeCryptoProvider } from '@mtcute/crypto-node'

const tg = new TelegramClient({
    ...,
    crypto: () => new NodeNativeCryptoProvider()
})

Tip: When using @mtcute/node, this will be done automatically for you.

Benchmarks

See https://github.com/mtcute/benchmarks

Readme

Keywords

none

Package Sidebar

Install

npm i @mtcute/crypto-node

Homepage

mtcute.dev

Weekly Downloads

33

Version

0.17.0

License

MIT

Unpacked Size

448 kB

Total Files

24

Last publish

Collaborators

  • teidesu