OS2 Generating a Bitcoin Private Key and Address Generating a Bitcoin Private Key and Address ecdsa 설치 sudo pip install ecdsa 1.소스 import ecdsa import ecdsa.der import ecdsa.util import hashlib import os import re import struct b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def base58encode(n): result = '' while n > 0: result = b58[n%58] + result n /= 58 return result def base256decode(s): result = 0 for c in s: result = re.. 2016. 8. 18. [go언어]http request http request 1. 소스 package main import ( "fmt" "io" "log" "net/http" "os" ) func main() { if len(os.Args) != 2 { fmt.Fprintf(os.Stderr, "Usage: %s URL\n", os.Args[0]) os.Exit(1) } response, err := http.Get(os.Args[1]) if err != nil { log.Fatal(err) } else { defer response.Body.Close() _, err := io.Copy(os.Stdout, response.Body) if err != nil { log.Fatal(err) } } } 2. 실행 go run 0x01.go http://192.. 2016. 7. 11. 이전 1 다음