摘要: 安全编译: NX(堆栈不可执行): -z noexecstack SP(栈保护):-fstack-protector-all 或 -fstack-protector-strong BIND_NOW(立即绑定):-Wl,z,now 或 LD_BIND_NOW=1 RELRO(只读重定位):-Wl,-z 阅读全文
posted @ 2021-02-06 17:54 cs_wu 阅读(1792) 评论(0) 推荐(0) 编辑
摘要: 需求:golang生成秘钥对,秘钥有密码 package main import ( "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/pem" "fmt" "os" ) func generateRSAKey(pripath, pubpath, 阅读全文
posted @ 2021-02-06 17:39 cs_wu 阅读(1537) 评论(0) 推荐(0) 编辑