javascript-algorithms icon indicating copy to clipboard operation
javascript-algorithms copied to clipboard

Proposal to Add Secure Hash Algorithm ( SHA-1 ) Hashing Algorithm

Open RgiriH opened this issue 1 year ago • 1 comments

Description

I would like to propose adding a SHA-1 hashing algorithm to our project. SHA-1 is a widely used cryptographic hash function that produces a 160-bit hash value, and it is often used for data integrity verification and digital signatures.

Rationale

  • Data Integrity: Implementing SHA-1 will provide users with a reliable method to verify data integrity.
  • Compatibility: Many existing systems and applications still rely on SHA-1 for hashing, making it a valuable addition.
  • Educational Value: Including this algorithm can enhance the educational aspect of our project by showcasing a fundamental cryptographic concept.

Implementation Details

  • The implementation will include:
    • A hashing function that processes input strings and returns the SHA-1 hash in hexadecimal format.
    • Unit tests to ensure the correctness of the implementation.
    • Documentation on how to use the SHA-1 function.

RgiriH avatar Oct 21 '24 17:10 RgiriH