MD5哈希可以转换为Base64算法吗? [英] Can MD5 Hash Be Converted To Base64 Algorithum?

查看:78
本文介绍了MD5哈希可以转换为Base64算法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在广泛阅读和研究不同类型的文件签名,以尝试了解什么是最好的和最快的方法来选出病毒,并且截至昨天,我遇到了大量的Base64签名.目前,我的扫描仪是MD5 Hash,但是感觉到添加base64或将MD5哈希转换为base64以使用将有很大的改进.

我即将完成我的项目,并且不想错过任何可能使项目变得更好的东西时,对此的任何投入或建议都将被接受.

先感谢您! :)

解决方案

丹,丹,丹.

请中断浏览器,然后开始使用Google: http://en.wikipedia.org/wiki/Base64 [^ ]

Base 64不是哈希算法.这是一种转换数据的方式,以便可以在非二进制通信链路上可靠地传输该数据:就像将字节值243(十六进制:F3)转换为两个字符串"F3"一样,效率更高,因为它破坏了将8位字节流转换为5位值并将其转换为可打印字符.试图解释:好的哈希函数实际上是不可逆的.设计这种方法是为了使任何转换"都不可能.人们甚至使用哈希来存储哈希密码.

假设您必须哈希算法:h1: (source)=>(hash1)h2: (source)=>(hash2).如果h1h2不相关,则转换"将表示hash1 => source => hash2,但是从理论上讲,第一步是不可能的:散列包含的信息少于源信息;也就是说,可以将两个不同的源散列为相同的结果.

—SA


I have been reading and researching extensivly about different types of file signatures to try and understand what is the best and quickest way to single out viruses and as of yesterday I ran into a large stock of Base64 Signatures. Currently my scanner is MD5 Hash but feel it would be of great improvement to add the base64 or to convert MD5 hash to base64 to use.

Any input or advise on this would be greatly accepted as I am nearing my completion of my project and dont want to miss anything that may make the project better.

thank you in advance! :)

解决方案

Dan, Dan, Dan.

Please, break out your browser, and start to use Google: http://en.wikipedia.org/wiki/Base64[^]

Base 64 is not a hashing algorithm. It is a way of translating data so that is can be reliably transported over non-binary communications links: like converting the byte value 243 (hex: F3) to a two character string "F3", only a lot more efficient since it breaks a stream of 8 bit bytes into 5 bit values and converts them into printable characters.


In addition to what Griff said: even if you has something to convert, like one hash into another, I already tried to explain: good hash function is practically irreversable. It is designed is such a way to make any "conversion" impossible. People even use hash to store hashes passwords.

Imagine you have to hash algorithms: h1: (source)=>(hash1) and h2: (source)=>(hash2). If h1 and h2 are not related, "conversion" would imply hash1 => source => hash2, but the first step is theoretically impossible: hash contains less information then the source; that is, two different sources can be hashed into the same result.

—SA


这篇关于MD5哈希可以转换为Base64算法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆