首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)
host github
hostname github.com
Port 22
host gitlab.zjut.com
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/hex" | |
| "fmt" | |
| ) |
| # WARNING: This docker-compose.yml is only for testing purpose. | |
| # Parameters: | |
| # - name: CONFLUENT_PLATFORM_VERSION | |
| # default: 3.0.0 | |
| # reference: https://hub.docker.com/u/confluentinc/ | |
| # Ports: | |
| # - description: Major ports are exposed to host computer | |
| # - zookeeper: 2181 | |
| # kafka1: 9091 | |
| # kafka2: 9092 |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "fmt" | |
| "crypto/rand" | |
| "io" | |
| "encoding/base64" | |
| "encoding/hex" |