#coding=utf-8
import ConfigParser  #配置文件模块
import hashlib    #用于加密的模块
m = hashlib.md5()
m.update(b'hello')
print m.hexdigest()

m.update(b'i am  oung ')
print m.hexdigest()

m1 = hashlib.sha1()
m1.update(b'hello')
print m1.hexdigest()

m1.update(b'i am  oung ')
print m1.hexdigest()

import hmac
h = hmac.new(b'234234','asdasd')
print h.digest()
print h.hexdigest()

 

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2021-10-06
  • 2021-08-10
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-09-14
相关资源
相似解决方案