crypto

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ForceMode bool
	Prefix    string
	Key       string
	NoBar     bool
)

Functions

func CalcEncryptSize

func CalcEncryptSize(size int64) int64

func Decrypt

func Decrypt(file string) error

func DecryptDESCBC

func DecryptDESCBC(cipherText, key, iv []byte) ([]byte, error)

func Encrypt

func Encrypt(file string) error

func EncryptDESCBC

func EncryptDESCBC(plainText []byte, key, iv []byte) ([]byte, error)

func InitCmd

func InitCmd(cmd *cobra.Command)

func Padding

func Padding(src []byte, blockSize int) []byte

func StreamDecrypt

func StreamDecrypt(reader io.Reader, writer io.Writer, Key string, blockSize int64, sig *sync.WaitGroup)

func StreamEncrypt

func StreamEncrypt(reader io.Reader, writer io.Writer, Key string, blockSize int64, sig *sync.WaitGroup)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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