Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Danoded

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Danoded / Pwned.cs
Last active Jun 29, 2018
Check Compromised Passwords Using the Pwned Passwords API
View Pwned.cs
using System;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Text;
/*C# code to check if a user's password has been compromised in data breaches that have taken place. Takes the first five symbols of the password hash and passes it to the Pwned Passwords API to return all hashes with that suffix, and then checks to see if the password hash is there. Good for ensuring users do not use compromised passwords, and really weak ones.
You can’t perform that action at this time.