Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic


Returns the SQL Server password hash of the input value that uses the current version of the password hashing algorithm.

PWDENCRYPT is an older function and might not be supported in a future release of SQL Server. Use HASHBYTES instead. HASHBYTES provides more hashing algorithms.

Topic link icon Transact-SQL Syntax Conventions

PWDENCRYPT ( 'password' )

Is the password to be encrypted. password is sysname.


PWDENCRYPT is available to public.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.