Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.6 KB

File metadata and controls

50 lines (38 loc) · 1.6 KB
title PWDENCRYPT (Transact-SQL)
description PWDENCRYPT (Transact-SQL)
author VanMSFT
ms.author vanto
ms.date 03/14/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2025
f1_keywords
PWDENCRYPT
PWDENCRYPT_TSQL
helpviewer_keywords
PWDENCRYPT function [Transact-SQL]
dev_langs
TSQL

PWDENCRYPT (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Managed Instance FabricSQLDB]

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.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

PWDENCRYPT ( 'password' )  

Arguments

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

Return Types

varbinary(128)

Permissions

PWDENCRYPT is available to public.

See Also

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