api_client.py 文件源码

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

项目:Complete-Bunq-API-Python-Wrapper 作者: PJUllrich 项目源码 文件源码
def sign(self, msg):
        """Create signature for message
        Taken from https://github.com/madeddie/python-bunq - Thanks!

        :param msg: data to be signed, usually action, headers and body
        :type msg: str

        """

        return base64.b64encode(
            self.privkey_pem.sign(
                msg.encode(),
                padding.PKCS1v15(),
                hashes.SHA256()
            )
        ).decode()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号