Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypt ¶
type Crypt struct {
// contains filtered or unexported fields
}
Crypt type represents the crypt abstraction for simple encryption and decryption. A provider (e.g. AWS KMS) determines the detail of the cryptographic operations.
func (*Crypt) DecryptFile ¶
DecryptFile reads from the inputPath file or stdin if empty. Then decrypts content with corresponding Key Management Service. Plaintext is saved into outputPath file or print on stdout if empty.
func (*Crypt) EncryptFile ¶
EncryptFile encrypts bytes from a file or stdin using a KMS provider and the ciphertext is saved into a file. If inputPath is empty, stdin is used as input If outputPath is empty, stdout is used as output
Click to show internal directories.
Click to hide internal directories.