ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Application development Toolkit

Learn the security ropes for .Net

Lamont Adams Builder.com

Published: 09 Jan 2003 16:07 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

In today's world, security is a very serious issue, one that developers all too often view as being SEP -- someone else's problem. I'd ascribe this state of affairs to, among other things, the fact that security very often deals with specific, rather rarified skills like cryptography that many of us on the technology treadmill don't have the time to adequately absorb in between learning all the new tricks offered by the slick new version of our chosen development platform. For .Net developers, there's .Net Security, a surprisingly small and concise book from Apress on securing applications written for the .Net platform.


.Net Security

By Jason Bock, Pete Stromquist, Tom Fischer, and Nathan Smith 336 pages Cover $44.95 Apress 2002 ISBN #1-59059-053-8
Highs: Well-written introduction to security tools and concepts for .Net
Lows: A few annoying source code errors. Not a lot of depth; basically a technology survey


In a relatively short 336 pages, .Net Security's gaggle of four authors manage to impart a decent working knowledge of the .Net platform's security features using a fun, informal style that's entertaining and easy to read. The authors by and large take a teach-by-example approach for concepts as well as for code, which works very well.

The first few chapters concentrate on cryptography itself. The book begins with a general overview of cryptography and discussions of the various encryption methods and standards in use today. Later chapters build upon the foundation laid in chapter 1, and if you don't happen to have a background in cryptography, or don't know symmetric encryption from cipher text stealing, you'll want to study these early chapters and take copious notes. Otherwise you'll find yourself constantly thumbing back to look up the three-letter acronyms used later in the text.

In chapter 2, the discussion of cryptography is turned specifically to .Net; here you'll meet and learn to use the various .Net cryptography classes. Chapter 3 introduces XML encryption and signatures. Many code examples are thrown in to help keep things clear, but I think most of the topics could have benefited from a bit more discussion.

From cryptography to security
Beginning with chapter 4, .Net Security switches gears, beginning to concentrate more on security mechanisms than on cryptography. Chapters 4 and 5 respectively cover the built-in code access and role access security features of the .Net framework that provide a permission-and-request model for securing access to a system and its resources. Remote security is introduced in chapter 6, which begins with a brief overview of .Net's remoting capabilities and wraps up with discussions of authentication, authorization, and impersonation.

Chapter 7 briefly deals with ASP.Net security. It provides some of the information you'll need to secure Web applications running on IIS. You'll want to look elsewhere for a comprehensive ASP.Net security guide, though, as the information relayed here is rather broad and general. However, this is understandable as doing justice to a topic as complex as security under ASP.Net would really require an entire book.

Chapter 8 discusses Passport, which will certainly be of interest to Web and Web service developers. The book concludes with a short discussion of code obfuscation and tips on preventing decompilation of your assemblies in chapter 9.

A great introduction
I liked this book, though it's not without its share of problems. For one thing, there are some minor problems with the source code examples. There are simple misspellings that are easy to figure out, but they do tend to make the cryptographic examples, in particular, rather cryptic, if you'll pardon the pun. For another, some of the source code examples don't seem to have enough detail to be clear. I found myself rereading entire sections to figure out why a few of the examples worked the way they did. Granted, I'm no security or cryptography expert, but shouldn't the measure of an introductory book be how clear it makes things for a novice? Viewed in this light, there could be some improvements made.

In contrast, the conceptual examples are quite clear. I particularly enjoyed the discussion of the security problems with COM interfaces that was used as a lead-in to code access security in chapter 4. I'm not sure which of the four authors was responsible for the humor, but whoever it was should be lauded for lightening up what could otherwise have been an obscenely dull read.

Overall, .Net Security is not the authoritative book on all aspects of .Net security, but the blurbs on the back cover really don't promote it as such. What it is, however, is a nicely crafted introductory guide to many of the tools and concepts you'll need to understand to take advantage of .Net's new security features.


For a weekly round-up of the enterprise IT news, sign up for the
Enterpise newsletter.

Find out what's where in the new Tech Update with our
Guided Tour.

Tell us what you think in the
Enterprise Mailroom.

  • Email
  • Trackback
  • Clip Link
  • Print friendly Print with Dell

Did you find this article useful?
36 out of 46 people found this useful


Full Talkback thread

0 comments


Company/Topic Alerts

Create a new alert from the list below:













Related Jobs

C# / ASP.Net / SQL Server 2005 / Silverlight Cheshire 3mth

C# / ASP.Net / SQL Server 2005 / Silverlight Cheshire 3mth I have a Public Sector client based in Cheshire, which is desperately seeking an ...

ASP.NET and C# Developer - Oxfordshire

You will need strong skills in ASP.NET and C# and will be able to work independently throughout the full lifecycle. NET 2.0 (ASP.NET, C#) and SQL ...

.NET ASP.NET, SQL Web Developer Merseyside 30,000

Key: .NET, ASP.NET, SQL. Cutting edge Software Solutions company is seeking a talented .NET ASP.NET Developer to join their development. Our client ...

Discussions

319762 319762

Eve of Distraction

Saturday 26 July 2008, 4:37 AM

1 comment

Featured Talkback

The fact is: Software developers today are really designers and not coders. The reason that business anlaysts exist today to model solutions is because they understand the value of designing software before writing it. All too often developers create code that has little value because they do not understand that business classes interact with other classes within the confines of a working model or pattern.

By: 1000165269

Read full story:
Making sense of agile modelling