Skip to content

Instantly share code, notes, and snippets.

@amarkulo amarkulo/.sql

Created Aug 24, 2017
What would you like to do?
Check PwnedPwdDB for unsecure hashes
use PwnedPwdDB
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
You can’t perform that action at this time.