I am writing a .Net Standard 2.1 class library that implements some cryptographic logic. I need to create a RSACryptoServiceProvider object from .pfx ...
I am writing a .Net Standard 2.1 class library that implements some cryptographic logic. I need to create a RSACryptoServiceProvider object from .pfx ...
I am trying to decrypt and validate the hash but at times of decrypting, it throws me the error 'Key does not exist' and at the time of validating the ...
My code causes the error: "Keyset does not exist". causes error: "Object already exists". Then I added the three lines below before calling ...
I am hoping that this question can be met with some guidance for someone who is beginning to work with encryption/decryption in C#. There are existing ...
I am currently migrating some libraries from .netstandard2.0 to .net5.0 and stumbled upon a strange behavior that I cannot really understand, i.e. it ...
I'm trying to build Bob and Alice asymmetric encryption and decryption implementation using RSACryptoServiceProvider for that I have console app ...
I have recieved a public keY in txt format. (BEGIN CERTIFICATE---END CERTIFICATE) I want to encrypt my message using this key in C# and send it across ...
I had a requirement where I need to set permissions for the Certificate private key, I used below method (SetCertificatePrivateKeyPermissions) which w ...
I read that we cannot set keySize for RSACryptoServiceProvider(int, cspParams) CspParameters cspParams = new CspParameters { KeyContainerName = " ...
I create a certificate request using this: key is set from CSP: ProviderName: "Utimaco CryptoServer CSP" KeyContainerName: "Default Container" B ...
I encrypted a file with a private key on a debian machine with the command : I also converted my public key from pem to xml with the python script ...
I try to decrypt message with RSACryptoServiceProvider and RSAParameters to store my key values (Modulus, Exponent, ...). But i don't know how to impo ...
We have a requirement where in Java does the encryption and .NET does the decryption. The issue is with Asymmetric decryption in .NET, the algorithm, ...
I am trying to use RSACryptoServiceProvider with CspParameters that point to a global pin. It works correctly if I use an application pin but when I u ...
Recently I have to use RSACryptoServiceProvider in dot net core 2.2. there is something wrong with RSA.FromXmlString() inside my GetSign() method . W ...
I was able to encrypt the connection string using RSA public key with Encoding.UTF8 and RSACryptoServiceProvider(). But while I tried to decrpyt it I ...
I'm trying to create a PublicKey instance using an Oid and RSA public Key but I'm getting a CryptographyException with "ASN1 bad tag value met". I'm f ...
I have the following code that generates public and private keys using RSA. My question is on how does RSACryptoServiceProvider generates every ...
I want to use a key pair for encryption and a separate key pair for signing. How can I store them in the same key container using RSACryptoServiceProv ...
I have the following code: byte[] rsaKey; using (var rsa = new RSACryptoServiceProvider(1024)) { rsaKey = rsa.ExportCspBlob(false); } The resu ...