obfuscator

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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