Skip to content

Instantly share code, notes, and snippets.

View meilon's full-sized avatar

Christian Arnold meilon

  • 05:48 (UTC +01:00)
View GitHub Profile
@meilon
meilon / ParsePwnedPasswordFile.ps1
Created August 16, 2017 12:29 — forked from Tras2/ParsePwnedPasswordFile.ps1
A PowerShell script which goes through the a Pwned Password list (available from https://haveibeenpwned.com/Passwords) and produces multiple smaller 'partition' files which contain the SHA-1 passwords specific to that partition
# A PowerShell script which goes through the a Pwned Password list (available from https://haveibeenpwned.com/Passwords)
# and produces multiple smaller 'partition' files which contain the SHA-1 passwords specific to that partition
#
# First released by Stuart Clarkson via https://gist.github.com/Tras2/66f80f2af1f1e125b1e4cc9ad3c12e3c
# Updated for increased speed by Christian Arnold via https://gist.github.com/meilon/d034ccf366d28343bf47ef59891acbaa
Param (
# The filename of the Pwned password source file
[Parameter(Mandatory=$true)]
[ValidateScript({Test-Path -Path $_})]
$InputFilename,