Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Listbox Item Selection Pin
malikjhangirahmed@hotmail.com30-May-06 21:19
malikjhangirahmed@hotmail.com30-May-06 21:19 
QuestionRe: Listbox Item Selection Pin
Brendan Vogt30-May-06 21:28
Brendan Vogt30-May-06 21:28 
AnswerRe: Listbox Item Selection [modified] Pin
albCode30-May-06 22:06
albCode30-May-06 22:06 
QuestionRe: Listbox Item Selection [modified] Pin
Brendan Vogt30-May-06 22:25
Brendan Vogt30-May-06 22:25 
QuestionDatagridview - programmatic Cell updation Question Pin
Tushar Bhatt30-May-06 20:58
Tushar Bhatt30-May-06 20:58 
AnswerRe: Datagridview - programmatic Cell updation Question Pin
Mairaaj Khan30-May-06 23:26
professionalMairaaj Khan30-May-06 23:26 
GeneralRe: Datagridview - programmatic Cell updation Question Pin
Tushar Bhatt1-Jun-06 19:09
Tushar Bhatt1-Jun-06 19:09 
QuestionEncryption Decryption Problem in Web Services Pin
malikjhangirahmed@hotmail.com30-May-06 20:50
malikjhangirahmed@hotmail.com30-May-06 20:50 
Hi,
I am using the following code to decrypt an array of bytes:
DESCryptoServiceProvider des=new DESCryptoServiceProvider();
des.BlockSize=blockSize;
des.Key=kDESKey;
des.KeySize=64;

des.Padding=PaddingMode.PKCS7;
des.Mode=CipherMode.ECB;

ICryptoTransform cryptoTransform=des.CreateDecryptor();
MemoryStream mem=new MemoryStream(cipherTextBytes);
CryptoStream cryptoStream=new CryptoStream(mem,cryptoTransform,CryptoStreamMode.Read);

byte[] outputBuffer=new byte[cipherTextBytes.Length];
cryptoStream.Read(outputBuffer,0,outputBuffer.Length);

mem.Close();
cryptoStream.Close();
return outputBuffer;

But the problem is that when i call Read of the cryptoStream, i get System.Cryptography.CryptographicException with the message of "Bad Data". Basically above code is the part of a web service. I am not concerned with the above code. I just want to provide some security feature to my web service. If it can be done through some other easy way, that's also welcome.
Please guide me in this regard...

Wasif Ehsan.
QuestionChanging type Pin
thepersonof30-May-06 20:49
thepersonof30-May-06 20:49 
AnswerRe: Changing type Pin
User 665830-May-06 23:50
User 665830-May-06 23:50 
GeneralRe: Changing type Pin
thepersonof30-May-06 23:55
thepersonof30-May-06 23:55 
GeneralRe: Changing type Pin
thepersonof31-May-06 3:08
thepersonof31-May-06 3:08 
QuestionSource Safe 2005 problem Pin
Snowjim30-May-06 20:18
Snowjim30-May-06 20:18 
QuestionAuthentication Authorization Pin
Saeed Rezaey30-May-06 19:29
Saeed Rezaey30-May-06 19:29 
AnswerRe: Authentication Authorization Pin
leppie30-May-06 19:34
leppie30-May-06 19:34 
GeneralRe: Authentication Authorization Pin
Saeed Rezaey30-May-06 19:45
Saeed Rezaey30-May-06 19:45 
AnswerRe: Authentication Authorization Pin
Mairaaj Khan1-Jun-06 3:00
professionalMairaaj Khan1-Jun-06 3:00 
QuestionHow to expose a class library in windows application as web service for other application Pin
Arun Kumar Babu30-May-06 19:05
Arun Kumar Babu30-May-06 19:05 
AnswerRe: How to expose a class library in windows application as web service for other application Pin
leppie30-May-06 19:32
leppie30-May-06 19:32 
GeneralRe: How to expose a class library in windows application as web service for other application Pin
Arun Kumar Babu30-May-06 19:36
Arun Kumar Babu30-May-06 19:36 
GeneralRe: How to expose a class library in windows application as web service for other application Pin
leppie31-May-06 2:00
leppie31-May-06 2:00 
QuestionAdd New Files To the solution programatically in c#.net Pin
compdesign30-May-06 18:44
compdesign30-May-06 18:44 
AnswerRe: Add New Files To the solution programatically in c#.net Pin
stancrm30-May-06 21:02
stancrm30-May-06 21:02 
QuestionWebBrowser control Pin
hung_ngole30-May-06 18:28
hung_ngole30-May-06 18:28 
AnswerRe: WebBrowser control Pin
Nafiseh Salmani30-May-06 20:29
Nafiseh Salmani30-May-06 20:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.