Documentation ¶
Index ¶
- func DecryptFile(secretKeyByte []byte, inFile string, needDeleteSource bool, ...) (string, string, error)
- func DecryptString(secretKeyByte []byte, in string) (string, string, error)
- func EncryptFile(secretKeyByte []byte, inFile string, needDeleteSource bool, ...) (string, string, error)
- func EncryptString(secretKeyByte []byte, in string) (string, string, error)
- type SmManage
- type SmManager
- func (s *SmManager) DecryptDir(inDir string) error
- func (s *SmManager) DecryptOneFile(inFile string) error
- func (s *SmManager) DecryptString(inString string) error
- func (s *SmManager) DoWork() error
- func (s *SmManager) EncryptDir(inDir string) error
- func (s *SmManager) EncryptOneFile(inFile string) error
- func (s *SmManager) EncryptString(inString string) error
- func (s *SmManager) SetFileSuffix(fileSuffix string) error
- func (s *SmManager) SetSecretKey(secretKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
func EncryptFile ¶
Types ¶
type SmManage ¶
type SmManage interface { SetSecretKey(secretKey string) error SetFileSuffix(fileSuffix string) error EncryptString(in string) error DecryptString(in string) error EncryptOneFile(in string) error DecryptOneFile(in string) error EncryptDir(in string) error DecryptDir(in string) error DoWork() error }
type SmManager ¶
type SmManager struct { SecretkeyByte []byte NeedDeleteSource bool FileSuffix string Mode string ResultChan chan string DoValue string }
func NewSmManager ¶
func (*SmManager) DecryptDir ¶
func (*SmManager) DecryptOneFile ¶
func (*SmManager) DecryptString ¶
func (*SmManager) EncryptDir ¶
func (*SmManager) EncryptOneFile ¶
func (*SmManager) EncryptString ¶
func (*SmManager) SetFileSuffix ¶
func (*SmManager) SetSecretKey ¶
Click to show internal directories.
Click to hide internal directories.