--- title: "Cryptographic Functions (Transact-SQL)" description: "Cryptographic Functions (Transact-SQL)" author: VanMSFT ms.author: vanto ms.date: "07/24/2017" ms.prod: sql ms.technology: t-sql ms.topic: reference helpviewer_keywords: - "functions [SQL Server], cryptographic" - "crypto functions" - "cryptography [SQL Server], functions" - "decryption [SQL Server], functions" - "security functions" - "encryption [SQL Server], functions" dev_langs: - "TSQL" --- # Cryptographic functions (Transact-SQL) [!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdb-asdbmi.md)] These functions support digital signing, digital signature validation, encryption, and decryption. ## Symmetric encryption and decryption :::row::: :::column::: [ENCRYPTBYKEY](../../t-sql/functions/encryptbykey-transact-sql.md) :::column-end::: :::column::: [DECRYPTBYKEY](../../t-sql/functions/decryptbykey-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [ENCRYPTBYPASSPHRASE](../../t-sql/functions/encryptbypassphrase-transact-sql.md) :::column-end::: :::column::: [DECRYPTBYPASSPHRASE](../../t-sql/functions/decryptbypassphrase-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [KEY_ID](../../t-sql/functions/key-id-transact-sql.md) :::column-end::: :::column::: [KEY_GUID](../../t-sql/functions/key-guid-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [DECRYPTBYKEYAUTOASYMKEY](../../t-sql/functions/decryptbykeyautoasymkey-transact-sql.md) :::column-end::: :::column::: [KEY_NAME](../../t-sql/functions/key-name-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [SYMKEYPROPERTY](../../t-sql/functions/symkeyproperty-transact-sql.md) :::column-end::: :::column::: :::column-end::: :::row-end:::   ## Asymmetric encryption and decryption :::row::: :::column::: [ENCRYPTBYASYMKEY](../../t-sql/functions/encryptbyasymkey-transact-sql.md) :::column-end::: :::column::: [DECRYPTBYASYMKEY](../../t-sql/functions/decryptbyasymkey-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [ENCRYPTBYCERT](../../t-sql/functions/encryptbycert-transact-sql.md) :::column-end::: :::column::: [DECRYPTBYCERT](../../t-sql/functions/decryptbycert-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [ASYMKEYPROPERTY](../../t-sql/functions/asymkeyproperty-transact-sql.md) :::column-end::: :::column::: [ASYMKEY_ID](../../t-sql/functions/asymkey-id-transact-sql.md) :::column-end::: :::row-end:::   ## Signing and signature verification :::row::: :::column::: [SIGNBYASYMKEY](../../t-sql/functions/signbyasymkey-transact-sql.md) :::column-end::: :::column::: [VERIFYSIGNEDBYASMKEY](../../t-sql/functions/verifysignedbyasymkey-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [SIGNBYCERT](../../t-sql/functions/signbycert-transact-sql.md) :::column-end::: :::column::: [VERIGYSIGNEDBYCERT](../../t-sql/functions/verifysignedbycert-transact-sql.md) :::column-end::: :::row-end::: :::row::: :::column::: [IS_OBJECTSIGNED](../../t-sql/functions/is-objectsigned-transact-sql.md) :::column-end::: :::column::: :::column-end::: :::row-end:::   ## Symmetric decryption, with automatic key handling :::row::: :::column::: [DecryptByKeyAutoCert](../../t-sql/functions/decryptbykeyautocert-transact-sql.md) :::column-end::: :::row-end:::   ## Encryption hashing :::row::: :::column::: [HASHBYTES](../../t-sql/functions/hashbytes-transact-sql.md) :::column-end::: :::row-end:::   ## Certificate copying :::row::: :::column::: [CERTENCODED (Transact-SQL)](../../t-sql/functions/certencoded-transact-sql.md) :::column-end::: :::column::: [CERTPRIVATEKEY (Transact-SQL)](../../t-sql/functions/certprivatekey-transact-sql.md) :::column-end::: :::row-end:::   ## See also [Functions](../../t-sql/functions/functions.md) [Encryption Hierarchy](../../relational-databases/security/encryption/encryption-hierarchy.md) [Permissions Hierarchy (Database Engine)](../../relational-databases/security/permissions-hierarchy-database-engine.md) [CREATE CERTIFICATE (Transact-SQL)](../../t-sql/statements/create-certificate-transact-sql.md) [CREATE SYMMETRIC KEY (Transact-SQL)](../../t-sql/statements/create-symmetric-key-transact-sql.md) [CREATE ASYMMETRIC KEY (Transact-SQL)](../../t-sql/statements/create-asymmetric-key-transact-sql.md) [Security Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/security-catalog-views-transact-sql.md)