| title | Cryptographic Functions (Transact-SQL) | Microsoft Docs | ||||||
|---|---|---|---|---|---|---|---|
| ms.custom | |||||||
| ms.date | 07/24/2017 | ||||||
| ms.prod | sql-non-specified | ||||||
| ms.prod_service | database-engine, sql-database | ||||||
| ms.service | |||||||
| ms.component | t-sql|functions | ||||||
| ms.reviewer | |||||||
| ms.suite | sql | ||||||
| ms.technology |
|
||||||
| ms.tgt_pltfrm | |||||||
| ms.topic | language-reference | ||||||
| dev_langs |
|
||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | 0be5626b-5a25-4d8c-9f44-7abbfccf816c | ||||||
| caps.latest.revision | 16 | ||||||
| author | edmacauley | ||||||
| ms.author | edmaca | ||||||
| manager | cguyer | ||||||
| ms.workload | On Demand |
[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx-md]
The following functions support encryption, decryption, digital signing, and the validation of digital signatures.
| ENCRYPTBYKEY | DECRYPTBYKEY |
| ENCRYPTBYPASSPHRASE | DECRYPTBYPASSPHRASE |
| KEY_ID | KEY_GUID |
| DECRYPTBYKEYAUTOASYMKEY | KEY_NAME |
| SYMKEYPROPERTY |
| ENCRYPTBYASYMKEY | DECRYPTBYASYMKEY |
| ENCRYPTBYCert | DECRYPTBYCERT |
| ASYMKEYPROPERTY | ASYMKEY_ID |
| SIGNBYASYMKEY | VERIFYSIGNEDBYASMKEY |
| SIGNBYCERT | VERIGYSIGNEDBYCERT |
| IS_OBJECTSIGNED |
| DecryptByKeyAutoCert |
| HASHBYTES |
| CERTENCODED (Transact-SQL) | |
| CERTPRIVATEKEY (Transact-SQL) |
Functions
Encryption Hierarchy
Permissions Hierarchy (Database Engine)
CREATE CERTIFICATE (Transact-SQL)
CREATE SYMMETRIC KEY (Transact-SQL)
CREATE ASYMMETRIC KEY (Transact-SQL)
Security Catalog Views (Transact-SQL)