在python中使用本机crypto api的小型哈希模块
cryptohash的Python项目详细描述
加密哈希
Tiny hashing module that uses the native crypto API in Python
演示
演示Repl.it
屏幕截图
安装
$ pip install cryptohash
用法
fromcryptohashimportsha1print(sha1('?'))#=> d0b16946377589fbc68d8b1ca324f16e84171463
API
API
SHA1(输入)
SHA224(输入)
SHA256(输入)
SHA384(输入)
SHA512(输入)
MD5(输入)
返回带有十六进制编码散列的Promise<string>
。
不要对任何敏感的对象使用md5
或sha1
。They're insecure.
输入
类型:string
输出格式
类型:string
值:hex
默认值:hex
许可证
MIT酸奶