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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A – Views and Functions ReferenceSignByAsymKeyThis function digitally signs the plain text data that is passed through itsarguments with an asymmetric key. This function is often used in conjunctionwith the EncryptByAsymKey function.Successful digital signing requires the user to have CONTROL permissions onthe asymmetric key that is being used to generate the digital signature.USE HomeLending;GOUPDATE dbo.Borrower_IdentificationSET Identification_Value =EncryptByAsymKey(AsymKey_ID('MyASymKey'),Identification_Value),Value_DigSig =SignByAsymKey (AsymKey_ID('MyASymKey'),Identification_Value,N'MyStr0ngP@ssw0rd2009')WHEREBorrower_ID = 1;GOListing A-24: Syntax of SignByAsymKey.SignByCertThis function digitally signs the plain text data that is passed through itsarguments with a certificate. This function is often used in conjunction with theEncryptByCert function.Successful digital signing requires the user to have CONTROL permissions onthe certificate that is being used to generate the digital signature.USE HomeLending;GOUPDATE dbo.Borrower_IdentificationSET Identification_Value =EncryptByCert(Cert_ID('MySelfSignedCert'),Identification_Value219

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

Saved successfully!

Ooh no, something went wrong!