- Notifications
You must be signed in to change notification settings - Fork0
hazae41/cadenas
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
npm i @hazae41/cadenas
This is experimental software in early development
- It has security issues
- Things change quickly
- 100% TypeScript and ESM
- Zero-copy reading and writing
- Transport agnostic (HTTP, WebSocket)
- WebStreams based backpressure
- Common CA Database certificates
- TLS 1.2
- TLS 1.3
- Zero RTT
import{TlsClientDuplex,Ciphers}from"@hazae41/cadenas"functionencrypt(tcp:ReadableWritablePair<Opaque,Writable>):ReadableWritablePair<Opaque,Writable>{constciphers=[Ciphers.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]consttls=newTlsClientDuplex({host_name:"example.com", ciphers})tcp.readable.pipeTo(tls.inner.writable).catch(()=>{})tls.inner.readable.pipeTo(tcp.writable).catch(()=>{})returntls.outer}
About
Zero-copy TLS protocol for the web 🏎️ (JS + WebAssembly)
Topics
Resources
Stars
Watchers
Forks
Packages0
No packages published