package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Jul 17, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Crypt interface {
Crypter
EncryptFile(inputPath, outputPath string) error
EncryptFiles(inputDir, outputDir, inputExtension, outputExtension string) error
DecryptFile(inputPath, outputPath string) error
DecryptFiles(inputDir, outputDir, inputExtension, outputExtension string) error
}
Crypt is an abstraction for encryption and decryption with files support
New creates a new Crypt with the given provider
Crypter is an Encrypter and a Decrypter
type Decrypter interface {
Decrypt(ciphertext []byte) ([]byte, error)
}
Decrypter must be able to decrypt ciphertext into plaintext, see also Encrypter
type Encrypter interface {
Encrypt(plaintext []byte) ([]byte, error)
}
Encrypter must be able to encrypt plaintext into ciphertext, see also Decrypter
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.