python md5解密,python中有md5解密功能吗?

i used md5.new(); md5.update("aaa"), md5.digest()

to form a md5 hash of the data "aaa" . How to get back the data using python?

解决方案

You cannot decode an md5 hash, as hashing is a process that is best thought of as one-way encoding (that is to say what is hashed cannot be de-hashed; one can only determine what was hashed, either by examining a list of known hashes, or by hashing a set of inputs and matching the resulting hashes with the hash you are trying to "decode").

Quoting Wikipedia, the key features of such a hashing algorithm are:

it is infeasible to find a message

that has a given hash,

it is

infeasible to modify a message without

changing its hash,

it is infeasible to

find two different messages with the

same hash.

The most common uses of such algorithms today are:

Storing passwords

Verifying the contents of files.

If you want to two-way encrypt the data, you need to look at other cryptographic libraries for Python (As usual, Stackoverflow has a recommendation).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值