You use Microsoft visual Studio 2010 and Microsoft NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database The application stores encrypted credit card
numbers in the database. You need to ensure that credit card numbers can be extracted from the
database. Which cryptograpny provider should you use?
A.
DSACryptoServiceProvider
B.
AESCryptoServiceProwier
C.
MD5CryptoServiceProvider
D.
SHA1 CryptoServceProvider
Explanation:
AESCryptoServiceProvider Performs symmetric encryption and decryption using the Cryptographic
Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard
(AES) algorithm.
DSACryptoServiceProvider Defines a wrapper object to access the cryptographic service provider
(CSP) implementation of the DSA algorithm. This class cannot be inherited.
MD5CryptoServiceProvider Computes the MD5 hash value for the input data using the
implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
SHA1CryptoServiceProvider Computes the SHA1 hash value for the input data using the
implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
DSACryptoServiceProvider
(http://msdn.microsoft.com/enus/library/system.security.cryptography.dsacryptoserviceprovider.aspx)
AESCryptoServiceProvider
(http://msdn.microsoft.com/enus/library/system.security.cryptography.aescryptoserviceprovider.aspx)
MD5CryptoServiceProvider
(http://msdn.microsoft.com/enus/library/system.security.cryptography.md5cryptoserviceprovider.aspx)
SHA1CryptoServiceProvider Class
(http://msdn.microsoft.com/enus/library/system.security.cryptography.sha1cryptoserviceprovider.aspx)