crypto

package
v1.30.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptBackup

func DecryptBackup(aesKey string, data []byte) ([]byte, error)

func DecryptCFBField

func DecryptCFBField(aesKey string, field string) (string, error)

DecryptCFBField DEPRECATED Only used to migrate old encrypted DB fields to the new cipher This function also return the field without error if found unencrypted This behavior is not present in the new DecryptField() function

func DecryptField

func DecryptField(aesKey string, field *string) error

func EncryptBackup

func EncryptBackup(aesKey string, data []byte) ([]byte, error)

func EncryptField

func EncryptField(aesKey string, field *string) error

func ImportEd25519SSHKey

func ImportEd25519SSHKey(keyValue string) (*dbmodels.SSHKey, error)

func ImportRSASSHKey

func ImportRSASSHKey(keyValue string) (*dbmodels.SSHKey, error)

func NewECDSAKey

func NewECDSAKey(length uint) (*pem.Block, gossh.PublicKey, error)

func NewEd25519Key

func NewEd25519Key() (*pem.Block, gossh.PublicKey, error)

func NewRSAKey

func NewRSAKey(length uint) (*pem.Block, gossh.PublicKey, error)

func NewSSHKey

func NewSSHKey(keyType string, length uint) (*dbmodels.SSHKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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