rsacsp decrypt error
From: Tim Wallace (twallace-ThisDoesNotBelong-AT-emailDOTcom)
Date: 09/16/05
- Next message: Valery Pryamikov: "Re: Importance of salt"
- Previous message: Dominick Baier [DevelopMentor]: "Re: Is WindowsPrincipal is Remotable ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 16 Sep 2005 16:54:27 -0400
I'm afraid I'm quite the novice when it comes to using encryption. I've run
into the following problem. I am using an instance of
RASCryptoServiceProvider to encrypt 30 text character in one application,
then sending that value via socket to another application where I try to
decrypt. I am getting an error that I'm sure will be straightforward to
someone, just not me. Here is the error message I catch: "The data to be
decrypted exceeds the maximum for this modulus of 128 bytes."
I created my key pair as follows:
CspParameters cp = new CspParameters();
cp.KeyContainerName = "some_container_name";
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(cp);
I attempt to decrypt using the same key pair, but receive the error above.
Can anyone shed some light as to what is possibly going wrong? I only need
to decrypt small amounts of data for now (256 characters or less).
Thanks:
Tim
- Next message: Valery Pryamikov: "Re: Importance of salt"
- Previous message: Dominick Baier [DevelopMentor]: "Re: Is WindowsPrincipal is Remotable ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|