Archive for September, 2008

How to create a key container which is accessible for many users?

Tuesday, September 23rd, 2008

.Net Framework supports a key containers which can be used to store asymmetric keys. Key containers are available for user-level and machine-level store.
User-level RSA key containers are stored with the Windows user profile for a particular user and can be used to encrypt and decrypt information for applications that run under that specific user identity. [...]

How to encrypt a large amount of data using RSA?

Friday, September 19th, 2008

Sometimes we need to encrypt a large amount data using some asymmetric key. As we all know it is impossible to encrypt more bytes than the key size (in bytes) of the key.

Padding
Operating System Supported
Maximum Length of rgb Parameter

OAEP padding (PKCS#1 v2)
Microsoft Windows XP or later.
Modulus size -2 -2*hLen, where hLen is the size of [...]

Generate documentation for .Net assemblies

Thursday, September 18th, 2008

Today, I finished an internal Dll in my current company and I’ve decided to build documentation for it. In the past I was used NDoc to do so but now I’ve decided to look for something new. I found Sandcastle project. This is a Microsoft project
Sandcastle is used internally to build .Net Framework documentation
as it [...]

How to access user certificate stored in active directory (AD)?

Wednesday, September 17th, 2008

Last week I ran into a problem how to access user certificates stored in AD. First of all I’ve checked what X509Store class offers to developers. Unfortunately, it allows access only to current user store and local machine store of the machine where developed application is ran. I’ve searched the Internet and I didn’t found [...]

Rijndael vs TripleDES in .Net (performance)

Monday, September 15th, 2008

Today, I was in front of a dilema which algorithm to use? Rijndael or TripleDES. As far as I know Rijndael is faster then TripleDES but i found some information about their realisation in .Net which tolds that in 2.0 TripleDES is even faster than Rijndael. As it is expected I decided to make a [...]

Got back from holliday

Friday, September 12th, 2008

I didn’t write anything for a long time (more than a month) and i feel that I’m ready to get back to my blog and to start posting again. I was in a vacation and I got a real rest from work and computers :).
The first thing I’d like to share is an on-line book [...]