摘要: package main import ( "bytes" "encoding/hex" "fmt" "math/big" ) var base58Alphabets = []byte("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwx 阅读全文
posted @ 2020-01-29 23:49 A毛毛 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/base64" "fmt" ) func main() { str := "Man" fmt.Println("原字符串是:", str) enStr := Base64EncodeString(str) fmt.Println("编码 阅读全文
posted @ 2020-01-29 22:27 A毛毛 阅读(2061) 评论(0) 推荐(0) 编辑
摘要: package main import ( "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/sha256" "encoding/hex" "fmt" "log" "math/big" ) func main() { // 1、对需要签名的 阅读全文
posted @ 2020-01-29 11:47 A毛毛 阅读(664) 评论(0) 推荐(0) 编辑