cipher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: BSD-2-Clause Imports: 1 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 the encrypt method
	Encrypt(src []byte) ([]byte, error)
	// Decrypt the decrypt method
	Decrypt(src []byte) ([]byte, error)
}

Cipher the cipher interface

func MustNewAesCbc

func MustNewAesCbc(key, iv string) Cipher

MustNewAesCbc NewAesCbc err will panic , be careful

func NewAesCbc

func NewAesCbc(key, iv string) (Cipher, error)

NewAesCbc support aescbc-128 aescbc-192 aescbc-256 match key len 16 24 32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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