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

Open
#1,205 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
cryptography

Research direction

Start by locating the project's existing hashing or cryptographic algorithm implementations and their unit tests. Define the SHA-1 function's input and hexadecimal output from the issue, then add correctness tests and usage documentation. Done means the implementation, tests, and documentation are present and the tests pass.

Written by the indexing model from the issue text.

Description

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.
Dominant language
JavaScript
Stars
197k
Forks
31k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from trekhleb/javascript-algorithms

All issues in trekhleb/javascript-algorithms

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.