Skip to main content

@tls/def@0.4.6
Built and signed on GitHub Actions

TLS 1.3 Definition, in so we can create tls1.3 record and handshake easily. All handshake including clientHello and serverHello are available.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
76%
Published
11 hours ago (0.4.6)

tls13def

tls13def is a collection of tls1.3 definitions

Usage

import { ClientHello, ServerHello } from 'mod.js';

//create ClientHello message
const clientHello = ClientHello.default('smpt.hello.mail')
//create record of clientHello
const recordCH = TLSPlainText.handshake(clientHello)

//create ServerHello message
const serverHello = ServerHello.new(sessionId, cipher, serverShareExtension);
//create record of serverHello 
const recordSH = TLSPlainText.handshake(serverHello)

Contributing

Contributions to improve the library are welcome. Please open an issue or pull request on the GitHub repository.

Donation

License

MIT

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@tls/def

Import symbol

import * as mod from "@tls/def";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@tls/def";

Add Package

npx jsr add @tls/def

Import symbol

import * as mod from "@tls/def";

Add Package

yarn dlx jsr add @tls/def

Import symbol

import * as mod from "@tls/def";

Add Package

pnpm dlx jsr add @tls/def

Import symbol

import * as mod from "@tls/def";

Add Package

bunx jsr add @tls/def

Import symbol

import * as mod from "@tls/def";