crypt

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(ciphertext string, key []byte) string

func DecryptRSA added in v1.2.0

func DecryptRSA(privateKey rsa.PrivateKey, encrypted []byte) string

func EncryptAES

func EncryptAES(text string, key []byte) string

func EncryptRSA added in v1.2.0

func EncryptRSA(publicKey rsa.PublicKey, message []byte) []byte

func GenKeys added in v1.2.0

func GenKeys() rsa.PrivateKey

func GenPasswd added in v1.2.0

func GenPasswd() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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