encrypt

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 9 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(v string, key, iv []byte) ([]byte, error)

func Encrypt

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

func ParsePrivatePem

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

func ParsePublicPem added in v1.1.9

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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