Documentation
¶
Index ¶
- func DecryptBackup(aesKey string, data []byte) ([]byte, error)
- func DecryptCFBField(aesKey string, field string) (string, error)
- func DecryptField(aesKey string, field *string) error
- func EncryptBackup(aesKey string, data []byte) ([]byte, error)
- func EncryptField(aesKey string, field *string) error
- func ImportEd25519SSHKey(keyValue string) (*dbmodels.SSHKey, error)
- func ImportRSASSHKey(keyValue string) (*dbmodels.SSHKey, error)
- func NewECDSAKey(length uint) (*pem.Block, gossh.PublicKey, error)
- func NewEd25519Key() (*pem.Block, gossh.PublicKey, error)
- func NewRSAKey(length uint) (*pem.Block, gossh.PublicKey, error)
- func NewSSHKey(keyType string, length uint) (*dbmodels.SSHKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCFBField ¶
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 EncryptField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.