加载中
Centos8 安装 supervisor

sudo dnf update -y sudo dnf install -y epel-release sudo yum update -y sudo yum -y install supervisor......

2020/08/12 11:38
7.7K
Go语言-加密: HMAC-SHA1

// HMAC-SHA1 加密 // plain 明文 // secret 密钥 // 返回base64编码的结果 func HmacSha1(plain, secret string) string { key := []byte(secret) pla := []byte(plain) mac := hmac.New(sh...

2020/04/29 10:16
2.1K
Go语言-设计模式

单例模式 package main import "sync" var instance *Single var once sync.Once type Single struct {} func NewSingle() *Single { once.Do(func() { instance = new(Single) ......

2020/01/20 16:16
516
GIT win cmd 中文乱码

git 版本号 2.18.0 出现的问题 解决办法 在命令行中输入如下命令 git config --global core.quotepath false git config --global gui.encoding utf-8 git config --global i18n.commit.enco...

Go语言加密算法之AES(CBC模式)

本文采用的是AES的CBC模式, DES可以参考另外一篇文章 ```go //初始化向量 var ivString = "a.osheng.win" //AES加密 func AesEncrypt(src, key string) string { plaintext := []byte(src) k...

2018/06/21 11:45
3.2K
Go语言的io.ReadCloser

读取io.ReadCloser中读取数据 ```go func ReadBody (resp *http.Response) { resBody := resp.Body buf := new(bytes.Buffer) buf.ReadFrom(resBody) fmt.Println(buf.String()) f......

Go
2018/06/21 09:41
1.4W
Go语言加密算法之DES(CBC模式, ECB模式)

Go语言的DES加密(CBC模式, ECB模式) ---- 与java加密互通 #### 问题场景: >业务需要对接接口, 采用DES加密方式加密, 于是google一下go的DES加密方式, go的DES的默认隐藏了ECB模式, 因为go认为...

2017/09/22 14:55
8.6K
cmder 1.3.2 中文乱码

cmder ssh 远程连接linux时中文乱码问题

2017/05/19 11:04
353
CentOS7 防火墙使用

查看已经开放的端口: firewall-cmd --list-ports 开启端口 firewall-cmd --permanent --zone=public --add-port=80/tcp 删除端口 firewall-cmd --permanent --zone=public --remove-po...

2016/12/23 13:51
75
Go语言跨平台交叉编译

Windows 平台下编译Linux下运行程序 set GOOS=linux set GOARCH=amd64 go build app_name.go 或者 GOOS=linux GOARCH=amd64 go build -o runner 然后就能获得Linux下可以运行的程序了......

2016/12/23 11:20
828
VirtualBox后台启动虚拟机--无界面

在vbox的安装路径下运行命令: > vBoxManage startvm <vm-name> --type headless 查看vbox虚拟机列表 > vBoxManage list vms...

2016/12/14 22:19
3.9K

没有更多内容

加载失败,请刷新页面

返回顶部
顶部