crypto

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: OSL-3.0 Imports: 10 Imported by: 2

Documentation

Overview

TLS and JA3 parsers

Index

Constants

View Source
const AndroidAPI24 = "771,49195-49196-52393-49199-49200-52392-158-159-49161-49162-49171-" +
	"49172-51-57-156-157-47-53,65281-0-23-35-13-16-11-10,23,0"

len 122, 8fcaa9e4a15f48af0a7d396e3fa5c5eb

View Source
const AndroidAPI25 = "771,49195-49196-52393-49199-49200-52392-158-159-49161-49162-49171-" +
	"49172-51-57-156-157-47-53,65281-0-23-35-13-16-11-10,23-24-25,0"

len 128, 9fc6ef6efc99b933c5e2d8fcf4f68955

View Source
const AndroidAPI26 = "771,49195-49196-52393-49199-49200-52392-49161-49162-49171-" +
	"49172-156-157-47-53,65281-0-23-35-13-5-16-11-10,29-23-24,0"

len 116, d8c87b9bfde38897979e41242626c2f3

View Source
const AndroidAPI29 = "771,4865-4866-4867-49195-49196-52393-49199-49200-52392-49161-49162-49171-" +
	"49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-51-45-43-21,29-23-24,0"

len 143, 9b02ebd3a43b62d825e1ac605b621dc8

View Source
const AndroidAPI32 = AndroidAPI29

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(ja3 string) string

func FormatJA3

func FormatJA3(spec *tls.ClientHelloSpec) (string, error)

func ParseJA3

func ParseJA3(str string) (*tls.ClientHelloSpec, error)

func ParseTLS

func ParseTLS(buf []byte) (*tls.ClientHelloSpec, error)

func Transport

func Transport(spec *tls.ClientHelloSpec, proxy string) *http.Transport

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(buf []byte) *Reader

func (*Reader) ReadUint32LengthPrefixed

func (r *Reader) ReadUint32LengthPrefixed() ([]byte, []byte, bool)

github.com/golang/go/issues/49227

Jump to

Keyboard shortcuts

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