Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.32 KB

README.md

File metadata and controls

20 lines (17 loc) · 1.32 KB

SHA-1

Implementation of the SHA-1 hashing function in Javascript with a command line interface for hashing inputs.

Installation

  1. run npm install
  2. run node main.js
  3. input any text to see its SHA-1 hash value output

Purpose

A concise and thoroughly commented implementation of the SHA-1 hashing function in Javascript that should be relatively easy to follow along with. There are associated test specs that were used primarily in developing the utils module, as well as several test specs to check the final implementation of the SHA-1 function. These specs as well as the comments could be used as a rough guide to create one's own implementation of SHA-1. This implementation was not coded with efficiency in mind and is not the most effective implementation of SHA-1, nor should it be used for any security purposes.

Resources