Socket
Book a DemoInstallSign in
Socket

hibp-downloader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hibp-downloader

Download all the HIBP passwords

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

hibp-downloader

Download all the HIBP passwords

It's like HaveIBeenPwned/PwnedPasswordsDownloader, only in node.js

CLI Usage:

# output all hashes to stdout:
npx hibp-downloader download

# output to a file:
npx hibp-downloader download -o hashes.txt

# get a subset of hashes (start and end are inclusive):
npx hibp-downloader download -s 0x00010 -e 0x00011

Javascript module usage:

const { createRange, getPrefixRange } = require('hibp-downloader');

async function getSomeHashes({start, end}){
  const range = createRange({start, end});
  const responses = getPrefixRange(range);
  responses.forEach(({prefix, hashes}) => {
    hashes.split(/\r?\n/).forEach(hash => {
      console.log(`${prefix}${hash}`);
    });
  });
}

Keywords

hibp

FAQs

Package last updated on 05 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.