摘要: 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毛毛 阅读(643) 评论(0) 推荐(0) 编辑
摘要: package main import ( "crypto" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" "io/ioutil" ) func main() { st 阅读全文
posted @ 2020-01-28 22:37 A毛毛 阅读(2447) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/des" "encoding/base64" "fmt" ) // main 入口函数 func main() { // DES密钥 key := "12345678 阅读全文
posted @ 2020-01-28 10:07 A毛毛 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 验证结果网址 http://www.fileformat.info/tool/hash.htm "golang.org/x/crypto/md4"不存在时,解决方法: cd $GOPATH/src mkdir -p golang.org/x/ cd golang.org/x/ git clone h 阅读全文
posted @ 2020-01-27 08:16 A毛毛 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: 原因是:原来的icon地址不存在了。 找到生成的代码中的icon地址:http://app.baidu.com/map/images/us_mk_icon.png 替换成这个地址即可:http://api.map.baidu.com/lbsapi/creatmap/images/us_mk_icon 阅读全文
posted @ 2020-01-13 11:59 A毛毛 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-type:text/html;charset=utf-8"); abstract class msg{ protected $send = null; public function __construct($send){ $this->send = $s 阅读全文
posted @ 2020-01-12 17:31 A毛毛 阅读(169) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-type:text/html;charset=utf-8"); // 适配器模式 /** * 查看天气接口 */ class Tianqi { public static function show(){ $arr = array('tem'=>28,'w 阅读全文
posted @ 2020-01-12 16:26 A毛毛 阅读(187) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-type:text/html;charset=utf-8"); /** * 文章编辑类 */ class Article { protected $content; protected $art = null; public function __cons 阅读全文
posted @ 2020-01-12 16:01 A毛毛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: html <html> <head> <meta charset="UTF-8"> <title>简单计算器</title> </head> <body> <h1>简单计算器</h1> <form action="10.php" method="post"> <input type="text" n 阅读全文
posted @ 2020-01-12 12:46 A毛毛 阅读(214) 评论(0) 推荐(0) 编辑