a native js function for hashing messages with the SHA-1 algorithm
Installations
npm install sha1
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
*
NPM Version
1.4.14
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
83,077,451
Last Day
110,152
Last Week
435,662
Last Month
2,080,799
Last Year
23,732,217
GitHub Statistics
105 Stars
21 Commits
19 Forks
5 Watching
1 Branches
4 Contributors
Bundle Size
2.70 kB
Minified
1.30 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.1
Package Id
sha1@1.1.1
Size
3.00 kB
NPM Version
1.4.14
Publised On
26 May 2015
Total Downloads
Cumulative downloads
Total Downloads
83,077,451
Last day
1.6%
110,152
Compared to previous day
Last week
-18%
435,662
Compared to previous week
Last month
9.5%
2,080,799
Compared to previous month
Last year
22.9%
23,732,217
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
sha1
a native js function for hashing messages with the SHA-1 algorithm
Installation
npm install sha1
or
ender build sha1
Example
1var sha1 = require('sha1'); 2 3sha1("message");
This will return the string:
"6f9b9af3cd6e8b8a73c2cdced37fe9f59226e27d"
API
sha1(msg)
Returns the SHA-1 hash of the given message.
msg
String -- the message that you want to hash.
It's as simple as that.
Credits
This function is taken from CryptoJS. This package only provides easy access to a javascript-only version of the SHA-1 algorithm over npm.
License
(New BSD License / BSD 3-Clause License)
Copyright © 2009, Jeff Mott. All rights reserved.
Copyright © 2011, Paul Vorbach. All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 3-Clause "New" or "Revised" License: LICENSE:0
Reason
Found 3/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More