travis_pypi_setup.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:calendary 作者: DavidHickman 项目源码 文件源码
def encrypt(pubkey, password):
    """Encrypt password using given RSA public key and encode it with base64.

    The encrypted password can only be decrypted by someone with the
    private key (in this case, only Travis).
    """
    key = load_key(pubkey)
    encrypted_password = key.encrypt(password, PKCS1v15())
    return base64.b64encode(encrypted_password)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号