Skip to Main Content
C# Cookbook, 2nd Edition
book

C# Cookbook, 2nd Edition

by Jay Hilyard, Stephen Teilhet
January 2006
Intermediate to advanced content levelIntermediate to advanced
1184 pages
43h 23m
English
O'Reilly Media, Inc.
Content preview from C# Cookbook, 2nd Edition
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
958
|
Chapter 17: Security
The main drawback to TripleDES is that both the sender and receiver must use the
same key and initialization vector (IV) in order to encrypt and decrypt the data suc-
cessfully. If you wish to have an even more secure encryption scheme, use the
Rijndael scheme. This type of encryption scheme is highly regarded as a solid encryp-
tion scheme, since it is fast and can use larger key sizes than TripleDES. However, it
is still a symmetric cryptosystem, which means that it relies on shared secrets. Use an
asymmetric cryptosystem, such as RSA or DSA, for a cryptosystem that uses shared
public keys with private keys that are never shared between parties.
See Also
See the “SymmetricAlgorithm Class,” “TripleDESCryptoServiceProvider Class,” and
“RijndaelManaged Class” topics in the MSDN documentation.
17.4 Cleaning up Cryptography Information
Problem
You will be using the cryptography classes in the FCL to encrypt and/or decrypt
data. In doing so, you want to make sure that no data (e.g., seed values or keys) is
left in memory for longer than you are using the cryptography classes. Hackers can
sometimes find this information in memory and use it to break your encryption or,
worse, to break your encryption, modify the data, and then reencrypt the data and
pass it on to your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard
C# Cookbook

C# Cookbook

Joe Mayo
Head First C#, 4th Edition

Head First C#, 4th Edition

Andrew Stellman, Jennifer Greene

Publisher Resources

ISBN: 0596100639Supplemental ContentCatalog PageErrata