Socket
Socket
Sign inDemoInstall

sha1

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc