17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A – Views and Functions ReferenceSELECTConvert(nvarchar(max),DecryptByPassphrase('The Crow Flies At Midnight.',Identification_Value))FROMdbo.Borrower_IdentificationWHEREBorrower_ID = 1;GOListing A-17: Syntax of DecryptByPassphrase.EncryptByAsymKeyThis function is used to encrypt data with an asymmetric key. No specificpermissions need to be granted to a user in order to use this function.USE HomeLending;GOUPDATE dbo.Borrower_IdentificationSET Identification_Value =EncryptByAsymKey(AsymKey_ID('MyASymKey'),Identification_Value)WHEREBorrower_ID = 1;GOListing A-18: Syntax of EncryptByAsymKey.EncryptByCertThis function is used to encrypt data with a certificate. No specific permissionsneed to be granted to a user in order to use this function.USE HomeLending;GOUPDATE dbo.Borrower_IdentificationSET Identification_Value =EncryptByCert(Cert_ID('MySelfSignedCert'),Identification_Value216

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!