Skip to content

MD5 and SHA1 hashing algorithms perform significantly slower than alternatives #1

@Cynid-22

Description

@Cynid-22

Description

The MD5 and SHA1 hashing algorithms in this repository are noticeably slower compared to other available algorithms. This performance gap impacts applications that require speedy hash computations.

Steps to reproduce

  1. Run benchmarks or speed comparison tests using the provided MD5 and SHA1 implementations
  2. Compare their execution times to other algorithms (e.g., SHA256, SHA512, etc.)

Expected behavior

MD5 and SHA1 should exhibit competitive performance, given their reputation as fast legacy algorithms.

Actual behavior

MD5 and SHA1 implementations take substantially longer to produce results than more modern or optimized algorithms.

Impact

  • Reduces efficiency in projects dependent on fast hashing
  • May lead users to choose alternate implementations or libraries

Recommendation

Investigate the implementation details of MD5 and SHA1. Optimize and refactor the code where possible to improve hashing speeds.


Label: bug, enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions