Learn the security ropes for .Net

ANALYSIS
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.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

16 minutes ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

59 minutes ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 hour ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

2 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

2 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

3 hours ago by ramwellian on Cloud computing security: no more oxymoron?
BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

3 hours ago by BugStalker on Windows 7 Declares War on GRUB
whs001

This is an excellent summary of Ubuntu and Mint and the interface differences between them. Most such articles take a very partisan position for...

3 hours ago by whs001 on A tale of two distros: Ubuntu and Linux Mint
Moley

@ewallace. Not so clear. Anyone can obtain the text, for example from here http://www.ustr.gov/webfm_send/2379. I support ACTA so long as it and...

3 hours ago by Moley on ACTA: Facts, misconceptions and questions
45283

I think WinRT is fantastic. I just wish it was an option for people that didn't want to go through Microsoft's App Store with its attendant...

6 hours ago by 45283 on Why Windows 8 needs architectural hygiene for WOA
Burn-IT

Nine people? £30m? Who's back pocket is that lot going in? And IF they say it is for new buildings, what about all the ones the government has...

7 hours ago by Burn-IT on Police set to launch three £30m e-crime hubs
ewallace

Just to be clear, nobody knows what is in the text of ACTA, here is a photograph of the text of ACTA http://twitpic.com/8h9iju as submitted to the...

7 hours ago by ewallace on ACTA: Facts, misconceptions and questions
fgvrg56

Unfortunately main issue is that ASUS is refusing to accept that they make some mistake on this version of asus Transformer prime. 1 - GPS sensor...

9 hours ago by fgvrg56 on Asus Eee Pad Transformer Prime Wi-Fi & GPS problems?
Ben Woods

@Marcus A fair question. Just talked with Archos which said it was working on an announcement for next week....

10 hours ago by Ben Woods on Archos confirms G9 Ice Cream Sandwich update schedule

Any update on this, considering the claimed "first week of February"?

11 hours ago by via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

19 hours ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility
txtrainguy

Replying to an old topic that I'm currently facing with my CEO (who is on a Mac). Our servers are primarily Windows Servers, office is about...

1 day ago by txtrainguy on Windows Server 2008 drops the ball for Mac compatibility
k0tcs3

Sure, that makes perfect sense. Pay wrong-doers money and thank them for breaching your security and pointing out your flaws, that would surely...

1 day ago by k0tcs3 on US indicts Romanian over NASA climate change hack
Random_Error

I think he's referring specifically to Android apps, as Apple do regulate their App Store, but Google seem to let any old crap onto the Android store!

1 day ago by Random_Error on RIM: BlackBerry will keep 'garbage' apps out of store
Paul Fezziwig

Keep the crap apps out?! How will they compete with Android and Apple's claim to fame of having so many life changing apps? I wonder if the media...

1 day ago by Paul Fezziwig via Facebook on RIM: BlackBerry will keep 'garbage' apps out of store

Latest in Application Development