Documentation ¶
Index ¶
- func AesGcmDecrypt(key, ciphertext []byte) ([]byte, error)
- func AesGcmEncrypt(key, plaintext []byte) ([]byte, error)
- func AesGcmKey32Decrypt(key, ciphertext []byte) ([]byte, error)
- func AesGcmKey32Encrypt(key, plaintext []byte) ([]byte, error)
- func DecryptLicense(cipherString string, sourceKey []byte, shiftKey byte, shiftArray []int64) ([]byte, error)
- func DecryptWithSshKey(cipherText, privateKey string) ([]byte, error)
- func EncryptLicense(plainText, sourceKey []byte, shiftKey byte, shiftArray []int64) (string, error)
- func EncryptWithSshKey(plainText, publicKey []byte) (string, error)
- func GenerateSshKeyPairs() (string, string, error)
- type Aesgcm
- type Encrypter
- type None
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesGcmDecrypt ¶
AesGcmDecrypt (from legacy package): decrypts ciphertext with the given key using AES in GCM mode. should be replaced.
func AesGcmEncrypt ¶
AesGcmEncrypt (from legacy package): encrypts plaintext with the given key using AES in GCM mode. should be replaced.
func AesGcmKey32Decrypt ¶
func AesGcmKey32Encrypt ¶
func DecryptLicense ¶
func DecryptWithSshKey ¶
func EncryptLicense ¶
func EncryptWithSshKey ¶
func GenerateSshKeyPairs ¶
Types ¶
type Aesgcm ¶
type Aesgcm struct { Compat bool // contains filtered or unexported fields }
Aesgcm provides an encrypter that uses the aesgcm encryption algorithm.
type Encrypter ¶
type Encrypter interface { Encrypt(plaintext string) ([]byte, error) Decrypt(ciphertext []byte) (string, error) }
Encrypter provides database field encryption and decryption. Encrypted values are currently limited to strings, which is reflected in the interface design.
Click to show internal directories.
Click to hide internal directories.