0.12.0 ā€¢ Published 3 days ago

@mtcute/crypto-node v0.12.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 days ago

@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

0.12.0

3 days ago

0.11.0

18 days ago

0.10.0

1 month ago

0.9.0

2 months ago

0.8.0

2 months ago

0.7.0

3 months ago

0.5.0

5 months ago

0.6.0

5 months ago

0.4.0

5 months ago

0.3.0

5 months ago

0.2.0

5 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago