necmcrypto

package
v0.0.0-...-6e2e2aa Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptECB

func AesDecryptECB(ct, key, iv []byte) ([]byte, error)

func AesEncryptCBC

func AesEncryptCBC(text []byte, key []byte, iv []byte, blockSize int) []byte

func AesEncryptECB

func AesEncryptECB(pt, key, iv []byte, blockSize int) []byte

func EapiDecrypt

func EapiDecrypt(ct []byte) ([]byte, error)

func EapiEncrypt

func EapiEncrypt(url []byte, data interface{}) map[string]string

func Md5Hex

func Md5Hex(message string) string

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func RsaEncrypt

func RsaEncrypt(text []byte, pk []byte) []byte

func WeapiEncrypt

func WeapiEncrypt(text []byte) map[string]string

Types

type Crypto

type Crypto uint8
const (
	CtryptoWeapi Crypto = iota + 1
	CtryptoEapi
	CtryptoLinuxapi
)

Jump to

Keyboard shortcuts

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