Hashing algorithms such as MD5 and SHA-256 are critical for data integrity but MD5 is now outdated and considered cryptographically broken.
On an Apple M2 system, while Bun shows a marginally faster performance in MD5 hashing, my tests reveal that both MD5 and SHA-256 are slower compared to the expected standards.
Despite the historical use of MD5 for quicker hashing, my benchmarking suggests that it’s now slower and offers less security compared to SHA-256.
The findings from testing imply that the usage of MD5 for security-sensitive applications is inadvisable as it compromises both speed and safety.
Collection
[
|
...
]