參考:https://www.cnblogs.com/yyds/p/7072492.html
hmac.new(bytes(self.token,'utf-8'),msg=bytes(content,'utf-8'),digestmod=sha256).hexdigest()
key為密鑰,msg為初始數據,digestmod為所使用的哈希算法,默認為hashlib.md5
hexdigest():十六進制格式的字符串
參考:https://www.cnblogs.com/yyds/p/7072492.html
hmac.new(bytes(self.token,'utf-8'),msg=bytes(content,'utf-8'),digestmod=sha256).hexdigest()
key為密鑰,msg為初始數據,digestmod為所使用的哈希算法,默認為hashlib.md5
hexdigest():十六進制格式的字符串
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。