理解SHA vs MD vs Whirlpool vs SHA-256

  • Overview

    《深入理解hash哈希散列函数》

    Encryption and hashing are similar in the way that they both take a string of useful text and convert it into somthing very different.

    MD5, SHA, Whirlpool are all one-way encryption methods, which mean hasing method and what makes one stronger than the other.

    The answer is actually very simple: the more bits a hash contains, the more secure.

    MD5 is a 128-bits string, SHA-1 is a 160-bit string and Whirlpool is a 512-bit string.

  • MD family of hashing algorithms

    The MD family of hashing algorithms were designed by Ron Rivest during the late 1980’s and early 1990’s.

    MD actually stands for Message Digest.

  • MD2 hashes

    MD2 was optimized to run on 8-bit computers and generates a 128-bit hash value the hashes are generally displayed as hexadecimal string which is a 32 character long.

  • MD5 Hashes

    MD5 was developed in 1991 and it repalced the eariler function MD4 due to believed weaknesses in this algorithm.

  • SHA Algorithms

    SHA (Secure Hash Algorithm) are developed by NIST. SHA algorithms weere based upon the MD4&5 algorithms developed by Ron Rivest.

  • SHA-0

    SHA-0 is officially known as SHA, it was the first incainnation of the secure hasing algorithm. This first version was withdrown soon after release due to weaknesses in the design.

  • SHA-1

    Released in 1994.

    SHA-1 is similar to MD4/5 . It is considered as MD5’s successor.

    Recently Xiaojun Wang managed to break the popular hashes, proving SHA-1 was not secure as it was once considered.

  • SHA-2

    SHA-2 is based closely upon the SHA-1 Algorithm. SHA-2 actually combines the SHA-224, SHA-256, SHA-384 and SHA-512 algorithms.

    • SHA-256

      SHA-256 as we already mentioned is part of the SHA-2 family of products.

      It’s based on SHA-2 but with the capability for larger output strings (to 256 bits)

    • SHA-384

      It’s size increased to 384 bits.

    • SHA-512

      The string is increased in size to 512 bits.

  • Whirlpool

    Whirlpool is quite a young hash algorithm it was first released in 2000.

    Whirlpool hashes are usually shown as a 128 digit hexadecimal sting, and it’s free with no patent.

  • References

  1. Technology Articles > Software > Security & Privacy > MD5 vs. SHA vs. Whirlpool
  2. What is the strongest hash algorithm?
  3. Comparison of cryptographic hash functions
  4. Difference between MD5 and SHA1
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
中提到了openssl speed命令的用法。其中,-evp选项用于指定使用EVP加密算法进行性能测试。具体用法如下: openssl speed -evp [算法名称] 其中,算法名称可以是以下之一: - md2 - mdc2 - md5 - hmac - sha1 - sha256 - sha512 - whirlpool - rmd160 - idea-cbc - seed-cbc - rc2-cbc - rc5-cbc - bf-cbc - des-cbc - des-ede3 - aes-128-cbc - aes-192-cbc - aes-256-cbc - aes-128-ige - aes-192-ige - aes-256-ige - camellia-128-cbc - camellia-192-cbc - camellia-256-cbc - rc4 - rsa512 - rsa1024 - rsa2048 - rsa4096 - dsa512 - dsa1024 - dsa2048 - ecdsap160 - ecdsap192 - ecdsap224 - ecdsap256 - ecdsap384 - ecdsap512 - ecdsak163 - ecdsak233 - ecdsak283 - ecdsak409 - ecdsak571 - ecdsab163 - ecdsab233 - ecdsab283 - ecdsab409 - ecdsab571 - ecdsa - ecdhp192 - ecdhp224 - ecdhp256 - ecdhp384 - ecdhp512 - ecdhk163 - ecdhk233 - ecdhk283 - ecdhk409 - ecdhk571 - ecdhb163 - ecdhb233 - ecdhb283 - ecdhb409 - ecdhb571 - ecdh - idea - seed - rc2 - des - aes - camellia - rsa - blowfish 所以,要使用openssl speed -evp命令,只需要替换为所需的加密算法即可。<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [openssl 的VC工程for openssl-1.0.0e](https://download.csdn.net/download/hello_hi_hi/3640407)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [OpenSSL命令---speed](https://blog.csdn.net/as3luyuan123/article/details/16851125)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值