Skip to content

Access BCrypt functions from SQL Server. Project based on BCrypt.Net project on CodePlex: https://bcrypt.codeplex.com/

Notifications You must be signed in to change notification settings

gaepdit/Bcrypt-for-SQL-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BCrypt for SQL Server

This project creates two SQL Server functions that are wrappers around the BCrypt.Net functions used to hash and verify passwords.

  • bcrypt.CheckPassword calls BCrypt.Net.BCrypt.Verify
  • bcrypt.HashPassword calls BCrypt.Net.BCrypt.HashPassword

Usage examples

declare
    @password varchar(57) = 'abc',
    @hash varchar(max)= '$2a$10$qvcDFHfBnxfX1.1KMIcX4O1UC9yLTkFzq/pQNPT24pm8VudXTnDC2';

select bcrypt.HashPassword(@password);
select bcrypt.CheckPassword(@password, @hash);

About

Access BCrypt functions from SQL Server. Project based on BCrypt.Net project on CodePlex: https://bcrypt.codeplex.com/

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published