New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sha1

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sha1 - npm Package Compare versions

Comparing version

to
1.0.0

.travis.yml

25

package.json
{
"author": "Paul Vorbach <paul@vorb.de> (http://vorb.de)",
"name": "sha1",
"description": "function for hashing messages with SHA-1",
"tags": [ "sha1", "hash", "encryption" ],
"version": "0.0.1",
"description": "native js function for hashing messages with SHA-1",
"tags": [
"sha1",
"hash",
"encryption",
"native",
"secure hashing algorithm"
],
"version": "1.0.0",
"repository": {

@@ -15,2 +21,5 @@ "type": "git",

"main": "sha1.js",
"script": {
"test": "mocha"
},
"engines": {

@@ -20,5 +29,9 @@ "node": "*"

"dependencies": {
"charenc": ">=0.0.0",
"crypt": ">=0.0.0"
}
"charenc": ">= 0.0.0",
"crypt": ">= 0.0.0"
},
"devDependencies": {
"mocha": "~ 1.4.2"
},
"optionalDependencies": {}
}

@@ -7,3 +7,3 @@ (function() {

// The core
sha1 = function(message) {
sha1 = function (message) {
// Convert to byte array

@@ -15,3 +15,3 @@ if (message.constructor == String)

var m = crypt.bytesToWords(message),
l = message.length * 8;
l = message.length * 8,
w = [],

@@ -18,0 +18,0 @@ H0 = 1732584193,