Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PWDENCRYPT (Transact-SQL)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

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.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions


PWDENCRYPT ( 'password' )

password

Is the password to be encrypted. password is sysname.

varbinary(128)

PWDENCRYPT is available to public.

Community Additions

ADD
Show:
© 2015 Microsoft