Call now: (800) 766-1884  



 Home


 SQL Server Tips
 SQL Server Training

 SQL Server Consulting
 SQL Server Support
 SQL Server Remote DBA



 Articles
 Services
 SQL Server Scripts
 Scripts Menu



 

 

 

   
  SQL Server Tips by Gama and Naughter

Asymmetric Encryption / Decryption

Asymmetric Cryptography or Public Key Cryptography uses a pair of different keys: a so called public key and a private key. The sender of the message as its name suggests keeps the private key confidential while the public key can be distributed to anyone who wants it. If you encrypt a message with one key of the pair, then only the other key can successfully decrypt the message. Public Key Cryptography is 2 to 3 orders of magnitude slower than symmetric algorithms, so normally it should not be used to encrypt bulk data. Instead it is normally used to encrypt session keys for symmetric algorithms.

RSA

RSA is a public key algorithm developed and named after its three inventors: Ron Rivest, Adi Shamir, and Leonard Adleman. It was originally devised in 1978 and is the most popular public key algorithm in use. XP_CRYPTOAPI provides XP_RSA_ENCRYPT and XP_RSA_DECRYPT for encryption / decryption using RSA. The basic layout of the encryption and decryption algorithms is very similar to their symmetric counterparts. Rather than creating a hash of the password and deriving a session key from this, the key is directly accessed from the CSPís container (described later).

DSA

The National Institute of Standards and Technology (NIST) developed the Digital Signature Algorithm as part of a proposal in 1991 for use in their Digital Signature Standard (DSS). DSA is only meant to be using for signatures and as such no XPís are provided to perform encryption / decryption of user data.


The above book excerpt is from:

Super SQL Server Systems
Turbocharge Database Performance with C++ External Procedures

ISBN: 0-9761573-2-2
Joseph Gama, P. J. Naughter

 http://www.rampant-books.com/book_2005_2_sql_server_external_procedures.htm  

 

Burleson Consulting Remote DB Administration


 

 


 

 

 

 

 
Burleson is the America's Team

Note: The pages on this site were created as a support and training reference for use by our staff of DBA consultants.  If you find it confusing, please exit this page.

Errata?  SQL Server technology is changing and we strive to update our SQL Server support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:and include the URL for the page.
 


Burleson Consulting
SQL Server database support

 

Copyright © 1996 -  2013 by Vaaltech Web Services. All rights reserved.

Hit Counter