bitwise

package
v0.0.0-...-e53d801 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encB []byte, seed string) ([]byte, error)

Decrypt 解密 []byte 数据

func DecryptFile

func DecryptFile(filePath, seed, filePrefix string) (string, error)

DecryptFile 指定文件进行解密

func Encrypt

func Encrypt(b []byte, seed string) ([]byte, error)

func EncryptFile

func EncryptFile(filePath, seed, prePath string) (string, error)

EncryptFile 指定文件进行加密 filePath 指定要加密的文件路径 seed 类似key一样 作用与随机生成 key (加密解密要保持一致) outPutPath 指定加密后的gob文件存储地址(会自动添加上ext中设置的值)

func GetRealFileName

func GetRealFileName(filePath string) string

GetRealFileName 获取真实文件名称(去掉路径前缀与加密后的ext)

func SaveFile

func SaveFile(encrypted []byte, outPutFile string) (string, error)

SaveFile 保存文件

func SetExt

func SetExt(e string)

Types

type Encrypted

type Encrypted struct {
	Data []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL