I am trying to encrypt a string.After encrypting string I get byte array,
I am converting the byte array to string using UTF Encoding.

But when I pass this string for decryption , i again convert the string into
byte array butI get a error as a BAD DATA ERROR.

The reason i need to convert the byte array to string is I want to pass the
string to server so that server decrypts the string and processes the
string.

Does .NET provide any method to convert a encrypted byte array into string
again converting it into array which could be safely decrypted?

There are methods in UTF8Encoding Class which allows this but the decryption
fails with its methods.



Can Somebdy Help Me out?

Dinesh Upare

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to