Which cryptography provider should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 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 cryptography provider should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 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 cryptography provider should you use?

A.
DSACryptoServiceProvider

B.
AESCryptoServiceProvider

C.
MD5CryptoServiceProvider

D.
SHA1CryptoServiceProvider

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/en-us/library/system.security.cryptography.dsacryptoserviceprovider.aspx)

AESCryptoServiceProvider
(http://msdn.microsoft.com/en-us/library/system.security.cryptography.aescryptoserviceprovider.aspx)

MD5CryptoServiceProvider
(http://msdn.microsoft.com/en-us/library/system.security.cryptography.md5cryptoserviceprovider.aspx)

SHA1CryptoServiceProvider Class
(http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha1cryptoserviceprovider.aspx)



Leave a Reply 0

Your email address will not be published. Required fields are marked *