首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个SHA1和SHA2纯Python 3的实现

一个SHA1和SHA2纯Python 3的实现

  • 资源大小:20.00 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python sha 一个 实现

资 源 简 介

Slow SHA Also on github: https://github.com/sfstpala/SlowSHA This single-file module implements the hashing algorithms sha1, sha224, sha256, sha384, and sha512 in pure Python. The code doesn"t contain too many optimisations, which makes it fairly easy to read. Note that this code is for educational purposes. Python"s native C implementation of SHA1/SHA2 is much faster and better tested. Usage: >>> import slowsha>>> slowsha.sha224(b"Python 3000").hexdigest()"ca10838d71bcd91cfc3e474867a5ed2f13feb14ee91a6dab2526a96b">>> slowsha.sha1(b"hello").digest()b"xaaxf4xc6x1dxdcxc5xe8xa2xdaxbexdex0f;H,xd9xaexa9CM">>> slowsha.sha224(b"Hello World") Download (0.1) 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

文 件 列 表

slowsha.py
COPYING
VIP VIP
  • Aaron 2小时前 成为了本站会员

  • 2小时前 成为了本站会员

  • DAAD 9小时前 成为了本站会员

  • 哇哈哈哈哈哈哈哈 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 维他 1天前 成为了本站会员

  • agnostic 2天前 成为了本站会员

  • 子非鱼 2天前 成为了本站会员

  • 柠檬汽水 3天前 成为了本站会员

  • 歪猴 3天前 成为了本站会员

0.177674s