__init__.py 文件源码

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

项目:py-secretcrypt 作者: Zemanta 项目源码 文件源码
def decrypt(self):
        """Decrypt decrypts the secret and returns the plaintext.

        Calling decrypt() may incur side effects such as a call to a remote service for decryption.
        """
        if not self._crypter:
            return b''
        try:
            plaintext = self._crypter.decrypt(self._ciphertext, **self._decrypt_params)
            return plaintext
        except Exception as e:
            exc_info = sys.exc_info()
            six.reraise(
                ValueError('Invalid ciphertext "%s", error: %s' % (self._ciphertext, e)),
                None,
                exc_info[2]
            )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号