Home > Microsoft .Net Development Tips > Application Testing and Security > Microsoft .NET security for newcomers
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

APPLICATION TESTING AND SECURITY

Microsoft .NET security for newcomers


Kamran Shakil
02.21.2003
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Let other users know how useful this tip is by rating it below. Got a tip or code of your own you'd like to share? Submit it here!


.NET security crosses 'process boundaries' and even 'machine boundaries' to prevent access to sensitive data or resources in a distributed application environment. This tip is with reference to Inside C# by Tom Archer.

The following are some of the basic elements of the .NET security system:

  1. Evidence-based security is a new concept in .NET Framework. An assembly contains several important pieces of information that may be applied to decide what level of access to grant the component. Some of the information used includes what site the component was downloaded from, what zone that site was in (Internet, intranet, local machine, and so on), and the strong name of the assembly. The strong name implies to an encrypted identifier that uniquely defines the assembly and confirms that it has not been tampered with.

  2. The .NET Common Language Runtime (CLR) provides security using policy-driven trust model using code evidence. It sounds worse than it really is. Essentially, this is a system of security policies that can be set by an administrator to allow certain levels of access based on the component's assembly information. The policies are set at three levels: the enterprise, the individual machine and the user.

  3. Calling the .NET Framework methods from the Base Class Library allows the benefits of the built-in security. That is, the developer doesn't have to make explicit security calls to access system resources. However, if your components expose interfaces to protected resources, you will be expected to take the appropriate security measures.

  4. Role-based security plays a part in the .NET security scheme. Many applications need to restrict access to certain functions or resources based on the user, and .NET introduces the concepts of identities and principals to incorporate these functions.

  5. Now authentication and authorization functions are accessed through a single API. These can easily be extended to incorporate application-specific logic as required. Authentication methods include basic operating system user identification, basic HTTP, ASP.NET forms, Digest and Kerberos, as well as the new .NET service, Microsoft .NET Passport.

  6. Yes! Isolated storage is a special area on disk, assigned to a specific assembly by the security system. No access to other files or data is allowed, and each assembly using isolated storage is separated from the others. Isolated storage may be applied for a saving a components state, or saving settings, and may be applied by components that do not have access to read and write files on the system.

  7. A robust set of cryptographic functions that support encryption, digital signatures, hashing and random-number generation are included in the .NET Framework. These are implemented using algorithms, such as RSA, DSA, Triple DES, DES and RC2, as well as the MD5, SHA1 and SHA-512 hash algorithms. Moreover, the XML Digital Signature specification, under development by the Internet Engineering Task Force (IETF) and the World Wide Web Consortium (W3C), is also available. The .NET Framework uses these cryptographic functions to support various internal services.


Source: DotNetExtreme.com

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
.NET Framework security best practices
New features in Windows 7 bring new UI considerations for developers
Podcast: Windows CardSpace authors speak
Book excerpt: Java EE and .NET security interoperability
Book excerpt: Advanced Windows Debugging
Book excerpt: Pragmatic unit testing in C# with NUnit
Security interoperability with .NET/WSE and WebLogic Workshop 8.1
Windows Developments: Product news, December 2007
How to avoid regression bugs while adding new features
VB code: New additions, November 2007
VB code: Application security downloads

Application Testing and Security
Test-driven development in .NET yields complete unit test coverage
How to write installers in Vista that work correctly under UAC
How to elevate programs' privileges correctly using Vista's UAC
Internet Explorer 8 beta's development tools add source visualizations
Microsoft previews new features in Visual Studio 2010
Advanced Windows Debugging Book Chapter and Podcast
Book excerpt: Advanced Windows Debugging
Book excerpt: Pragmatic unit testing in C# with NUnit
Security interoperability with .NET/WSE and WebLogic Workshop 8.1
How to avoid regression bugs while adding new features

VB 6 to VB .NET Migration
On managing a .NET Framework 1.x migration
Tool translates VB .NET code to Java
Microsoft unveils VB 2005 'Power Packs'
Mini-Guide: The VB.NET Development Environment, Part 3
Mini-Guide: The VB.NET Development Environment, Part 2
Mini-Guide: The VB.NET Development Environment, Part 1
Put VB.NET events in the hands of AddHandler
Choosing VB.NET or C# Learning Guide
Object-Oriented Programming in VB .NET Learning Guide
Quiz: What do you know about VB 6 migration?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
common test platform  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts