encrypt

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ECDSA ecdsaKey

ECDSA Private Key

View Source
var Public publicKey

Public Key

View Source
var RSA rsaKey

RSA Private Key

Functions

func Decrypt

func Decrypt(data []byte, key, iv []byte) ([]byte, error)

Decrypt aes decrypt

func Encrypt

func Encrypt(data []byte, key, iv []byte) ([]byte, error)

Encrypt aes encrypt

func PKCS7Padding

func PKCS7Padding(data []byte) []byte

func ParsePrivatePem

func ParsePrivatePem(value string) (pri, pub interface{}, err error)

func ParsePublicPem

func ParsePublicPem(value string) (interface{}, error)

func UnPKCS7Padding

func UnPKCS7Padding(data []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