Documentation ¶
Index ¶
- func Decrypt(encB []byte, seed string) ([]byte, error)
- func DecryptFile(filePath, seed, filePrefix string) (string, error)
- func Encrypt(b []byte, seed string) ([]byte, error)
- func EncryptFile(filePath, seed, prePath string) (string, error)
- func GetRealFileName(filePath string) string
- func SaveFile(encrypted []byte, outPutFile string) (string, error)
- func SetExt(e string)
- type Encrypted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
DecryptFile 指定文件进行解密
func EncryptFile ¶
EncryptFile 指定文件进行加密 filePath 指定要加密的文件路径 seed 类似key一样 作用与随机生成 key (加密解密要保持一致) outPutPath 指定加密后的gob文件存储地址(会自动添加上ext中设置的值)
func GetRealFileName ¶
GetRealFileName 获取真实文件名称(去掉路径前缀与加密后的ext)
Types ¶
Click to show internal directories.
Click to hide internal directories.