auth.py 文件源码

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

项目:authserver 作者: jdelic 项目源码 文件源码
def safe_summary(self, encoded: str) -> Dict[str, str]:
        """
        Returns a summary of safe values

        The result is a dictionary and will be used where the password field
        must be displayed to construct a safe representation of the password.
        """
        roundcount, salt, hash = self._split_encoded(encoded)
        return OrderedDict([
            (_('algorithm'), self.algorithm),
            (_('iterations'), str(roundcount)),
            (_('salt'), hashers.mask_hash(salt)),
            (_('hash'), hashers.mask_hash(hash)),
        ])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号