asp.net

The .NET Symmetric Encryption Algorithms

Symmetric algorithms always use the same key for encryption and decryption and they are fast for encryption and ecryption.

The next table lists symmetric algorithms supported by .NET:

 

Abstract Algorithm

Default Implementation

Valid Key Size

Maximum Key Size

DES
DES
DESCryptoServiceProvider
64
64

TripleDES
TripleDES
TripleDESCryptoServiceProvider
128,192
192

RC2
RC2
RC2CryptoServiceProvider
40-128
128

Rijndael
Rijndael
RijndaelManaged
128,192,256
256

 

The strength of the encryption corresponds …

Learn more

The .NET Cryptography Classes

The .NET encryption classes are divided into three layers.

1. The first layer is a set of abstract base classes and these classes represent an encryption task. The next table lists these classes:

 

Class …

Learn more

How to generate cryptographically strong random numbers in VB.NET

You can create strong random number values with the System.Security.Cryptography.RandomNumberGenerator class. You use these random key or salt values when you want to store salted password hashes. A salted password hash is a hash created from a password and a so-called salt where salt is a random value. This guarantees that even if two users select …

Learn more

How to generate cryptographically strong random numbers in C#

You can create strong random number values with the System.Security.Cryptography.RandomNumberGenerator class. You use these random key or salt values when you want to store salted password hashes. A salted password hash is a hash created from a password and a so-called salt where salt is a random value. This guarantees that even if two users select …

Learn more

How do Windows certificate stores work

Windows supports several types of certificate stores that are called store locations. You can create a separate store for each Windows service of a machine, and every user has a separate certificate store. Certificates are kept securely in those stores. The local machine store is encrypted with a key managed by the local security authority of …

Learn more

How to read X509 certificates in VB.NET

X509 certificates play an important role in the world of the Web, because they establish SSL communication and perform certificate authentication to secure traffic between the web server and its clients. Our site provides more details in the articles How does Secure Sockets Layer (SSL) technology work, How do certificates work and How does …

Learn more

How to read X509 certificates in C#

X509 certificates play an important role in the world of the Web, because they establish SSL communication and perform certificate authentication to secure traffic between the web server and its clients. Our site provides more details in the articles How does Secure Sockets Layer (SSL) technology work,  How do certificates work and  How does SSL work …

Learn more

How to use the Roles API with Windows authentication in ASP.NET in VB.NET

The roles API  ships a provider that integrates with Windows roles for Windows authentication: the WindowsTokenRoleProvider. This provider retrieves the Windows group membership information for the currently logged-on user and provides it for your application. When using the WindowsTokenRoleProvider, you have to configure your application using Windows authentication and then configure the WindowsTokenRoleProvider as follows:

 

<configuration>

Learn more

How to use the Roles API with Windows authentication in ASP.NET in C#

The roles API  ships a provider that integrates with Windows roles for Windows authentication: the WindowsTokenRoleProvider. This provider retrieves the Windows group membership information for the currently logged-on user and provides it for your application. When using the WindowsTokenRoleProvider, you have to configure your application using Windows authentication and then configure the WindowsTokenRoleProvider as follows:

 

<configuration>

Learn more

How to access Roles programmatically for Role-Based authorization in ASP.NET

You can programmatically add new roles, read role information, and delete roles from your application. In addition, you can associate users with roles as well as get users associated with a specific role. You can do all this by calling methods of the Roles class.

Most of the properties included in the Roles class just map to the settings …

Learn more