TechNet
Export (0) Print
Expand All

PWDENCRYPT (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

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' )  

password
Is the password to be encrypted. password is sysname.

varbinary(128)

PWDENCRYPT is available to public.

Security Functions (Transact-SQL)
PWDCOMPARE (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft