encrypt

package
v0.0.0-...-a332dfd Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptPassword

func DecryptPassword(encryptedData string, privateKey *rsa.PrivateKey) (string, error)

func ExportPrivateKeyToPEM

func ExportPrivateKeyToPEM(privateKey *rsa.PrivateKey) string

func ExportPublicKeyToPEM

func ExportPublicKeyToPEM(publicKey *rsa.PublicKey) (string, error)

func ParseRSAPrivateKey

func ParseRSAPrivateKey(privateKeyPEM string) (*rsa.PrivateKey, error)

func StringDecrypt

func StringDecrypt(text string) (string, error)

func StringDecryptWithBase64

func StringDecryptWithBase64(text string) (string, error)

func StringDecryptWithKey

func StringDecryptWithKey(text, key string) (string, error)

func StringEncrypt

func StringEncrypt(text string) (string, error)

func StringEncryptWithBase64

func StringEncryptWithBase64(text string) (string, error)

func StringEncryptWithKey

func StringEncryptWithKey(text, key string) (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