MD5到文本转换器 [英] MD5 to text convertor
本文介绍了MD5到文本转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用vb6将MD5转换为文本字符串的任何人.
我正在跟踪将字符串转换为MD5哈希的链接
链接:使用VB创建和创建检查许可证密钥 [^ ]
anyone having the MD5 to text string converter using vb6.
I am following the link that will convert the string into MD5 hash
link: Using VB to Create & Check License Keys[^]
Private Const MyProductName ="Office Trainer"
. . .
If Not (UserNameT = "") Or Not (ProdNameT = "") Then
RawKey = GenKeyString(UserNameT, ProdNameT & MyProductName, FeatID)
BinKey = HexStrToBinStr(RawKey)
KeyCode = FormatKeyCode(Base32Enc(BinKey), 4)
Else
KeyCode = "Please Enter Licensee and/or Serial Number;
End If
. . .
我拿到了Rawkey.现在我想使用MD5描述获取原始值.
I m getting the Rawkey. now i want to get the original value using MD5 description.
推荐答案
您不能. MD5不是一种加密机制,它是一种哈希算法.这就是所谓的不可逆过程.
考虑一下:MD5的长度为128位.
如果您使用256GB文件的MD5,则它的长度仍为128位.您将如何重新生成丢失的数据? (如果可以的话,请迅速申请专利-这种压缩值得 财富 )
如果同时需要两种方式,则需要加密算法.
You can''t. MD5 is not an encryption mechanism, it is a hashing algorithm. That means it is what is called a non-reversable process.
Think about it: and MD5 is 128 bits long.
If you take the MD5 of a 256GB file, it is still 128 bits long. How would you re-generate the missing data? (if you could do it, pattent it quickly - that kind of compression is worth a fortune)
If you need to go both ways, you need an encryption algorithm instead.
这篇关于MD5到文本转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文