Documentation
¶
Index ¶
- type File
- func (f *File) AesDump(filePath string, jsonObj interface{}) error
- func (f *File) AesDumpData(key string, jsonObj interface{}) error
- func (f *File) AesLoad(filePath string, jsonObj interface{}) error
- func (f *File) AesLoadData(key string, data []byte, jsonObj interface{}) error
- func (f *File) AesUpdate(filePath string, jsonObj interface{}, newAesKey string) error
- func (f *File) AesUpdateData(key string, jsonObj interface{}, newAesKey string) error
- func (f *File) DecryptFile(filePath string) error
- func (f *File) DecryptFileNoChangeName(filePath string) error
- func (f *File) DecryptFileWithEncryptName(encryptFilePath string) error
- func (f *File) EncryptFile(filePath string) error
- func (f *File) EncryptFileNoChangeName(filePath string) error
- func (f *File) GetEncryptFileName(filePath string) (encryptFilePath string, encryptFileName string, err error)
- func (f *File) ReadEncryptFile(filePath string) (data []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Password *zdpgo_password.Password
}
func (*File) AesDumpData ¶
AesDumpData 将json对象加密为并存储
func (*File) AesLoadData ¶
AesLoadData 加载字节数据
func (*File) AesUpdateData ¶
AesUpdateData 更新加密的数据
func (*File) DecryptFileNoChangeName ¶
DecryptFileNoChangeName 解密文件且不修改文件名
func (*File) DecryptFileWithEncryptName ¶
DecryptFileWithEncryptName 根据加密文件名解密文件
func (*File) EncryptFileNoChangeName ¶
EncryptFileNoChangeName 加密文件且不修改文件名
Click to show internal directories.
Click to hide internal directories.