|
Disable .NET security
|
Total Hit (2090) |
The .NET Framework enforces secuity at several levels. For example, assemblies downloaded from the Internet have very limited permissions (especially after installing the Service Pack 1 of the Framework). This means that many operations that would be legal in some cases may throw an exception in oth
....Read More |
Rating
|
|
|
|
Role-Based Authorization With Forms Authentication
|
Total Hit (1608) |
In Web applications, typically there exist certain parts of the site that only certain individuals, or groups of individuals, can access. For example, imagine an intranet Web site used to administer the content on a company's public Internet Web site, where the public Web site lists products sold by
....Read More |
Rating
|
|
|
Calculating CRC32 (and MDA5 and SHA-1) From .NET
|
Total Hit (2517) |
The CRC (Cyclic Redundancy Checksum) algorithm is a highly optimised and powerful way of checking whether a large number of bytes have been modified or not. The algorithm scans through all the bytes and generates a 32 bit number to represent the contents - small changes in the file contents result i
....Read More |
Rating
|
|
|
How Do I...Encrypt and Decrypt a file?
|
Total Hit (2800) |
The CryptoStream class in the System.Security.Cryptography namespace is used to easily define cryptographic transforms on any data stream. The constructor is defined as the following: CryptoStream (Stream argument, ICryptoTransform transform, CryptoStreamMode mode).
....Read More |
Rating
|
|
|
How Do I...Generate and compare a hash value?
|
Total Hit (2388) |
It is easy to generate and compare hash values using the cryptographic resources contained in the System.Security.Cryptography namespace. Because all hash functions take input of type Byte[], it might be necessary to convert the source into a byte array before it is hashed.
To generate a hash val
....Read More |
Rating
|
|
|
|
What Is Authorization Manager
|
Total Hit (1155) |
Role-based security has been evolving on the Windows platform since the first release of Windows NT. Using roles, the operating system can make determinations, such as whether a process is privileged, by checking the security context for a group called BUILTIN\Administrators. The operating system ma
....Read More |
Rating
|
|
|
How to run your .net application using admin privilege under Vista?
|
Total Hit (987) |
Assume you're writing some application that really - I mean really really - needs administrative privileges (does it? you must be kidding). So, you want it to run evelated as an administrator. How to tackle this requirement in a Windows Vista and UAC world where even an administrator is locked down
....Read More |
Rating
|
|