obfuscation

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT

README

obfuscation

混淆加密 随机匹配

安装

go get github.com/dollarkillerx/obfuscation

简单使用
func TestDecode(t *testing.T) {
	key := GetRandKey()              // 生成专用key
	log.Println("key: ", key)
	data := "你好亚"
	s, e := Encode(key, []byte(data))  // 编码
	if e != nil {
		panic(e)
	}
	log.Println(s)

 	bytes, e := Decode(key, s)         // 解码
	if e != nil {
		panic(e)
	}
	log.Println(string(bytes)) 
}

Directories

Path Synopsis
* * @Author: DollarKillerX * @Description: grand.go * @Github: https://github.com/dollarkillerx * @Date: Create in 下午6:01 2019/12/9
* * @Author: DollarKillerX * @Description: grand.go * @Github: https://github.com/dollarkillerx * @Date: Create in 下午6:01 2019/12/9
* * @Author: DollarKillerX * @Description: 实现基础base64 * @Github: https://github.com/dollarkillerx * @Date: Create in 下午5:47 2019/12/9 * * @Author: DollarKillerX * @Description: 混淆base64加密 * @Github: https://github.com/dollarkillerx * @Date: Create in 下午5:52 2019/12/9
* * @Author: DollarKillerX * @Description: 实现基础base64 * @Github: https://github.com/dollarkillerx * @Date: Create in 下午5:47 2019/12/9 * * @Author: DollarKillerX * @Description: 混淆base64加密 * @Github: https://github.com/dollarkillerx * @Date: Create in 下午5:52 2019/12/9
* * @Author: DollarKillerX * @Description: 压缩字符串 高效网络传输(注意:如果数据比较小 压缩反之会便大) * @Github: https://github.com/dollarkillerx * @Date: Create in 下午8:04 2019/12/9
* * @Author: DollarKillerX * @Description: 压缩字符串 高效网络传输(注意:如果数据比较小 压缩反之会便大) * @Github: https://github.com/dollarkillerx * @Date: Create in 下午8:04 2019/12/9

Jump to

Keyboard shortcuts

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