encrypt

package
v0.0.0-...-730dbba Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyEncryptionKey

func APIKeyEncryptionKey() (string, error)

func DecryptAPIKey

func DecryptAPIKey(value, id, key string) (string, error)

func DecryptPassword

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

func EncryptAPIKey

func EncryptAPIKey(secret, id, key string) (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