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

@stablelib/sha256

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/sha256 - npm Package Compare versions

Comparing version 0.7.2 to 1.0.0

3

lib/sha256.d.ts

@@ -0,1 +1,4 @@

/**
* Package sha256 implements SHA-2-256 cryptographic hash function.
*/
import { SerializableHash } from "@stablelib/hash";

@@ -2,0 +5,0 @@ export declare const DIGEST_LENGTH = 32;

2

lib/sha256.js

@@ -12,3 +12,3 @@ "use strict";

*/
var SHA256 = (function () {
var SHA256 = /** @class */ (function () {
function SHA256() {

@@ -15,0 +15,0 @@ /** Length of hash output */

@@ -320,3 +320,3 @@ "use strict";

}
for (var i = 0; i < 12; i++) {
for (var i = 0; i < 12; i++) { // 3 GiB
buf[0] = i & 0xff;

@@ -323,0 +323,0 @@ h.update(buf);

{
"name": "@stablelib/sha256",
"version": "0.7.2",
"version": "1.0.0",
"description": "SHA-256 cryptographic hash function",

@@ -18,10 +18,11 @@ "main": "./lib/sha256.js",

"dependencies": {
"@stablelib/binary": "^0.7.2",
"@stablelib/hash": "^0.5.0",
"@stablelib/wipe": "^0.5.0"
"@stablelib/binary": "^1.0.0",
"@stablelib/hash": "^1.0.0",
"@stablelib/wipe": "^1.0.0"
},
"devDependencies": {
"@stablelib/base64": "^0.7.2",
"@stablelib/benchmark": "^0.5.0"
}
"@stablelib/base64": "^1.0.0",
"@stablelib/benchmark": "^1.0.0"
},
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6"
}
// Copyright (C) 2016 Dmitry Chestnykh
// MIT License. See LICENSE file for details.
/**
* Package sha256 implements SHA-2-256 cryptographic hash function.
*/
import { SerializableHash } from "@stablelib/hash";

@@ -5,0 +9,0 @@ import { readUint32BE, writeUint32BE } from "@stablelib/binary";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc