crypt

package
v0.0.0-...-e6fd437 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(str string) (string, error)

func DecryptByKey

func DecryptByKey(str string, key []byte) (string, error)

func Encrypt

func Encrypt(src []byte) (string, error)

func EncryptByKey

func EncryptByKey(src []byte, key []byte) (string, error)

func GenKey

func GenKey(n int) []byte

func GetDefaultKey

func GetDefaultKey() []byte

func GetKey

func GetKey(key string) []byte

func Md5Encryption

func Md5Encryption(s string) string

func PKCS7Padding

func PKCS7Padding(cipher []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(src []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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