Documentation ¶
Overview ¶
Package operation is for agent file/folder encryption/decryption. It is the core for blackbox agent side program.
Index ¶
- func AesDecryptFile(cipherdata []byte, hash []byte, key []byte, opath string) error
- func AesDecryptFileAuto(arg cli.Args, path string) error
- func AesDecryptFolderAuto(arg cli.Args, path string) error
- func AesEncryptFile(filedata []byte, hash [16]byte, key []byte, opath string) error
- func AesEncryptFileAuto(arg cli.Args, path string) error
- func AesEncryptFolderAuto(arg cli.Args, path string) error
- type PlainFile
- type PlainFolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptFile ¶
Decrypt a single file, write output to opath.
func AesDecryptFileAuto ¶
A wrapper of AesDecryptFile, including get file hash and connects to blackbox server for getting encryption key.
func AesDecryptFolderAuto ¶
Recursively decrypt files within the root directory.
func AesEncryptFile ¶
Encrypt a single file, write output to opath.
func AesEncryptFileAuto ¶
A wrapper of AesDecryptFile, including calculate file hash and connects to blackbox server for getting encryption key.
Types ¶
type PlainFolder ¶
type PlainFolder struct {
Files []PlainFile
}
Click to show internal directories.
Click to hide internal directories.