Skip to content

Instantly share code, notes, and snippets.

View kozloski's full-sized avatar

Jesse Kozloski kozloski

View GitHub Profile
@kozloski
kozloski / Test-PwnedPassword.ps1
Created May 8, 2019 15:07
PowerShell function for testing passwords against HIBP Pwned Password database
function Test-PwnedPassword {
[CmdletBinding()]
param (
[Parameter()]
[System.Security.SecureString]
$Password = ( Read-Host -Prompt "Enter a password to test" -AsSecureString ),
[Parameter()]
[switch]
$Detailed