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

@tabcat/peer-account-crypto

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

@tabcat/peer-account-crypto - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

package.json
{
"name": "@tabcat/peer-account-crypto",
"version": "0.1.0",
"version": "0.2.0",
"description": "crypto library for node and browser. uses webcrypto or node-webcrypto-ossl for primatives",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,3 +5,3 @@

module.exports = async function (length = '256', data) {
module.exports = async function (data, length = '256') {
return new Uint8Array(

@@ -8,0 +8,0 @@ await webcrypto.get().subtle.digest(

@@ -16,3 +16,3 @@

)
const digest = await sha(length, emptyData)
const digest = await sha(emptyData, length)
assert.deepStrictEqual(digest, precomputed)

@@ -26,5 +26,5 @@ })

)
const digest = await sha(length, emptyData)
const digest = await sha(emptyData, length)
assert.deepStrictEqual(digest, precomputed)
})
})
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