This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |