I’ve already written some posts that show some source code that can be rewritten in a different way and this way to achieve better performance. Now I will open a series with a topic of this post with a number and I’ll post different samples of implementations that I’ll run into and I’ll do some [...]
Today, one of the developers in our teams asked me does it possible to use custom actions in ClickOnce. I’ve never thought about this before and I googled a bit. I found a nice article in MSDN. It briefly describes both technologies and the beginning and you can get an overview of them. Further, it [...]
In one of our projects we use a machine level key container in order to store a RSA key. The code is well tested and used in our test environment before production. But today something very strange happened. The Unit tests failed on our continuous integration server. What’s wrong? Every failed test has failed with [...]
I need a custom role based security for our project. It should be based on resources and resources’ permissions. All resources are somehow objects.
Firstly, I’ve implemented custom principal inherited from GenericPrincipal class, custom permission that implements IPermission and IUnrestrictedPermission. And than as it is expected I implement my realization of CodeAccessSecurityAttribute in order to [...]
.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. [...]
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 [...]