What are the best practices for encrypting data in .NET?

What are the best practices for dealing with

  1. Things that should be hashed. i.e. passwords

and

  1. Things that cannot be hashed, but are extremely confidential and would cause tremendous pain if compromised. i.e. credit cards, SSN, missle launch codes.

Which encryption algorithm is strongest, most recommended? How you do handle the keys?

Answers


There are built in crypto libraries you can use in .Net. There are many good symmetric and asymmetric encryption algorithms (AES, RSA, etc) Many of these algorithms let you select how strong a key you want (1024bit, 2048bit, etc).

Storing your keys is a much dicier situation. I suggest not in a plain text file. There are algorithms out there for slpitting encryption keys in half so that responsibility is divided.


Need Your Help

equivalent to MatLab “bar” function in R?

r matlab ggplot2 packages

Is there an function in R that does the same job as Matlab's "bar" function?

Symfony 2 basic controller - return Response?

php symfony2

I'm learning Symfony 2 and I have problem:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.