utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcPkcs7Encrypt

func AesCbcPkcs7Encrypt(text string, secretKeyBytes, ivBytes []byte) (string, error)

func GenerateNewCode7Dig

func GenerateNewCode7Dig() (randomNumber string)

func PKCS5Padding

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

ECB PKCS5Padding

func PKCS5Unpadding

func PKCS5Unpadding(origData []byte) []byte

ECB PKCS5Unpadding

func SignPKCS1v15FromXml

func SignPKCS1v15FromXml(doc, prKey string) (string, error)

func TripleEcbDesDecrypt

func TripleEcbDesDecrypt(crypted, key []byte) ([]byte, error)

[golang ECB 3DES Decrypt]

func TripleEcbDesEncrypt

func TripleEcbDesEncrypt(origData, key []byte) ([]byte, error)

[golang ECB 3DES Encrypt]

Types

type XMLRsaKey

type XMLRsaKey struct {
	Modulus  string
	Exponent string
	P        string
	Q        string
	DP       string
	DQ       string
	InverseQ string
	D        string
}

Jump to

Keyboard shortcuts

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