cipher

package
v2.3.169 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher interface {
	Encrypt(plaintext []byte) ([]byte, error)
	Decrypt(ciphertext []byte) ([]byte, error)
}
var RC4Cipher Cipher

type RC4

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

func NewRC4

func NewRC4(key []byte) *RC4

func (*RC4) Decrypt

func (c *RC4) Decrypt(ciphertext []byte) ([]byte, error)

func (*RC4) Encrypt

func (c *RC4) Encrypt(plaintext []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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