Search code examples
sqlpbkdf2

Is there a SQL implementation of PBKDF2?


Does anyone know of a SQL implementation of PBKDF2?

(I'd rather not use an external library like, for example, ChillKat's ActiveX component.)


Solution

  • PBKDF2 is built into the .NET framework as System.Security.Cryptography.Rfc2898DeriveBytes. It's straightforward to create a SQL CLR function that wraps a call to this class' GetBytes method.

    I realize you were looking for a solution that doesn't require an external library but at least this limits the dependency an assembly that simply wraps framework code.