Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nostr-tools

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nostr-tools - npm Package Compare versions

Comparing version 0.10.3 to 0.11.0

5

nip04.js

@@ -0,1 +1,2 @@

import aes from 'browserify-cipher'
import {Buffer} from 'buffer'

@@ -10,3 +11,3 @@ import randomBytes from 'randombytes'

let iv = Uint8Array.from(randomBytes(16))
var cipher = crypto.createCipheriv(
var cipher = aes.createCipheriv(
'aes-256-cbc',

@@ -26,3 +27,3 @@ Buffer.from(normalizedKey, 'hex'),

var decipher = crypto.createDecipheriv(
var decipher = aes.createDecipheriv(
'aes-256-cbc',

@@ -29,0 +30,0 @@ Buffer.from(normalizedKey, 'hex'),

9

package.json
{
"name": "nostr-tools",
"version": "0.10.3",
"version": "0.11.0",
"description": "Tools for making a Nostr client.",

@@ -12,6 +12,7 @@ "repository": {

"bip39": "^3.0.4",
"buffer": "^6.0.3",
"create-hmac": "^1.1.7",
"browserify-cipher": ">=1",
"buffer": ">=5",
"create-hmac": ">=1",
"dns-packet": "^5.2.4",
"randombytes": "^2.1.0",
"randombytes": ">=2",
"websocket-polyfill": "^0.0.3"

@@ -18,0 +19,0 @@ },

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