crypto

package
v0.0.0-...-e612854 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: LGPL-2.1 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(c string, k string) (string, error)

func EncryptAES

func EncryptAES(plain string, key string) (string, error)

func GenerateSignature

func GenerateSignature(msg interface{}, privateKeyB64 string) (string, error)

func URLEncodedBase64ToHex

func URLEncodedBase64ToHex(c string) (string, error)

func VerifySignature

func VerifySignature(msg interface{}, publicKeyB64 string, strSign string) error

Types

type PKCKeyCombo

type PKCKeyCombo struct {
	PublicKey  string
	PrivateKey string
}

func GeneratePKCKeys

func GeneratePKCKeys() *PKCKeyCombo

Jump to

Keyboard shortcuts

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