uploader.py 文件源码

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

项目:storj-python-sdk 作者: Storj 项目源码 文件源码
def _prepare_bucket_entry_hmac(self, shard_array):
        """

        Args:
            shard_array (): .
        """
        storj_keyring = model.Keyring()
        encryption_key = storj_keyring.get_encryption_key('test')
        current_hmac = ''

        for shard in shard_array:
            base64_decoded = '%s%s' % (base64.decodestring(shard.hash),
                                       current_hmac)
            current_hmac = self._calculate_hmac(base64_decoded, encryption_key)

        self.__logger.debug('current_hmac=%s' % current_hmac)

        return current_hmac
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号