obfuscator

package
v0.84.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package obfuscator contains some MTProxy obfuscation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	Obfuscator
}

Conn is net.Conn wrapper to use Obfuscator.

func FakeTLS

func FakeTLS(rand io.Reader, conn net.Conn) *Conn

FakeTLS creates new FakeTLS connection.

func Obfuscated2

func Obfuscated2(rand io.Reader, conn net.Conn) *Conn

Obfuscated2 creates new obfuscated2 connection.

func (*Conn) Read

func (o *Conn) Read(b []byte) (n int, err error)

Read implements io.Reader.

func (*Conn) Write

func (o *Conn) Write(b []byte) (n int, err error)

Write implements io.Writer.

type Obfuscator

type Obfuscator interface {
	io.ReadWriter
	Handshake(protocol [4]byte, dc int, s mtproxy.Secret) error
}

Obfuscator represents MTProxy obfuscator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL