cipher

package
v0.0.0-...-7e11129 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKey

func NewKey(method, password string) []byte

NewKey create key from method/password

Types

type Cipher

type Cipher interface {
	net.Conn
	// Read(p []byte) (n int, err error)
	// Write(p []byte) (n int, err error)
	KeySize() int
	Init(key []byte, conn net.Conn)
}

Cipher cipher interface

func NewCipher

func NewCipher(method string) Cipher

NewCipher create cipher

Jump to

Keyboard shortcuts

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