Skip to content

Instantly share code, notes, and snippets.

@amarkulo
Created August 24, 2017 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amarkulo/bb1b4cc2f97b37d2ca81357a413b3959 to your computer and use it in GitHub Desktop.
Save amarkulo/bb1b4cc2f97b37d2ca81357a413b3959 to your computer and use it in GitHub Desktop.
Check PwnedPwdDB for unsecure hashes
use PwnedPwdDB
go
DECLARE @HashThis varchar(MAX) = 'password';
DECLARE @Hash varchar(MAX);
set @Hash = convert(varchar(max), HASHBYTES('SHA1', @HashThis), 2);
select * from Hashes where hash = @Hash;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment