cipher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT, MIT Imports: 3 Imported by: 0

README

go-cipher

cipher interface for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleCipher

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

SimpleCipher 简单加密

func (*SimpleCipher) SetKey

func (sc *SimpleCipher) SetKey(key string) error

SetKey 设置密码

func (SimpleCipher) StreamDecrypt

func (sc SimpleCipher) StreamDecrypt(input *bytebuffer.ByteBuffer) (output *bytebuffer.ByteBuffer)

StreamDecrypt 解密

func (SimpleCipher) StreamEncrypt

func (sc SimpleCipher) StreamEncrypt(input *bytebuffer.ByteBuffer) (output *bytebuffer.ByteBuffer)

StreamEncrypt 加密

type StreamDecryptor

type StreamDecryptor interface {
	StreamDecrypt(*bytebuffer.ByteBuffer) *bytebuffer.ByteBuffer
}

StreamDecryptor 流式解密器

type StreamEncryptor

type StreamEncryptor interface {
	StreamEncrypt(*bytebuffer.ByteBuffer) *bytebuffer.ByteBuffer
}

StreamEncryptor 流式加密器

Jump to

Keyboard shortcuts

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