| title | PWDENCRYPT (Transact-SQL) | ||
|---|---|---|---|
| description | PWDENCRYPT (Transact-SQL) | ||
| author | VanMSFT | ||
| ms.author | vanto | ||
| ms.reviewer | |||
| ms.date | 03/14/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | sql-database | ||
| ms.technology | t-sql | ||
| ms.topic | reference | ||
| ms.custom | |||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
Returns the [!INCLUDEssNoVersion] 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 [!INCLUDEssNoVersion]. Use HASHBYTES instead. HASHBYTES provides more hashing algorithms.
Transact-SQL Syntax Conventions
PWDENCRYPT ( 'password' )
[!INCLUDEsql-server-tsql-previous-offline-documentation]
password
Is the password to be encrypted. password is sysname.
varbinary(128)
PWDENCRYPT is available to public.