Click here to Skip to main content
15,922,894 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: get parameter in html Pin
ptvce29-Sep-08 1:48
ptvce29-Sep-08 1:48 
GeneralRe: get parameter in html Pin
Brij29-Sep-08 2:06
mentorBrij29-Sep-08 2:06 
GeneralRe: get parameter in html Pin
ptvce29-Sep-08 2:37
ptvce29-Sep-08 2:37 
GeneralRe: get parameter in html Pin
Brij29-Sep-08 2:57
mentorBrij29-Sep-08 2:57 
AnswerRe: get parameter in html Pin
eyeseetee29-Sep-08 1:27
eyeseetee29-Sep-08 1:27 
Questionwebdatetimeedit infragistics control is always displaying in the page (Urgent) Pin
patra.santanu@yahoo.co.in29-Sep-08 0:48
patra.santanu@yahoo.co.in29-Sep-08 0:48 
AnswerRe: webdatetimeedit infragistics control is always displaying in the page (Urgent) Pin
Ashfield29-Sep-08 1:21
Ashfield29-Sep-08 1:21 
QuestionEncryption and Decryption Pin
srinivaskonijeti29-Sep-08 0:40
srinivaskonijeti29-Sep-08 0:40 
HI ALL,
I am using the following code for Decrtption

public static string Decrypt(string xxxxx)
{

RijndaelManaged RijndaelCipher = new RijndaelManaged();
string Password = "srinu";
byte[] EncryptedData = Convert.FromBase64String(xxxxx);
byte[] Salt = Encoding.ASCII.GetBytes(Password.Length.ToString());
//Making of the key for decryption
PasswordDeriveBytes SecretKey = new PasswordDeriveBytes(Password, Salt);
//Creates a symmetric Rijndael decryptor object.
ICryptoTransform Decryptor = RijndaelCipher.CreateDecryptor(SecretKey.GetBytes(32), SecretKey.GetBytes(16));
MemoryStream memoryStream = new MemoryStream(EncryptedData);
//Defines the cryptographics stream for decryption.THe stream contains decrpted data
CryptoStream cryptoStream = new CryptoStream(memoryStream, Decryptor, CryptoStreamMode.Read);
byte[] PlainText = new byte[EncryptedData.Length];
int DecryptedCount = cryptoStream.Read(PlainText, 0, PlainText.Length);
memoryStream.Close();
cryptoStream.Close();
//Converting to string
string DecryptedData = Encoding.Unicode.GetString(PlainText, 0, DecryptedCount);
return DecryptedData;
}

It is showing me an error

"An exception of type 'System.FormatException' occurred in .DLL but was not handled in user code

Additional information: Invalid length for a Base-64 char array."

in the Line "byte[] EncryptedData = Convert.FromBase64String(xxxxx);"

Plz help me solve this ASAP.
AnswerRe: Encryption and Decryption Pin
Ashfield29-Sep-08 1:22
Ashfield29-Sep-08 1:22 
AnswerRe: Encryption and Decryption Pin
Paddy Boyd29-Sep-08 2:23
Paddy Boyd29-Sep-08 2:23 
AnswerRe: Encryption and Decryption Pin
Guffa29-Sep-08 6:13
Guffa29-Sep-08 6:13 
QuestionAuto Fill Grid Pin
srinivaskonijeti29-Sep-08 0:39
srinivaskonijeti29-Sep-08 0:39 
AnswerRe: Auto Fill Grid Pin
HemJoshi29-Sep-08 2:43
HemJoshi29-Sep-08 2:43 
AnswerRe: Auto Fill Grid Pin
ednrg1-Oct-08 3:50
ednrg1-Oct-08 3:50 
QuestionA generic error occurred in GDI+ Pin
mehrdadc4829-Sep-08 0:04
mehrdadc4829-Sep-08 0:04 
QuestionGridview page change is affecting sessions Pin
eyeseetee28-Sep-08 22:44
eyeseetee28-Sep-08 22:44 
AnswerRe: Gridview page change is affecting sessions Pin
simsen29-Sep-08 0:37
simsen29-Sep-08 0:37 
GeneralRe: Gridview page change is affecting sessions Pin
eyeseetee29-Sep-08 0:53
eyeseetee29-Sep-08 0:53 
AnswerRe: Gridview page change is affecting sessions Pin
eyeseetee29-Sep-08 1:18
eyeseetee29-Sep-08 1:18 
Questionhow to get the grid items??? Pin
sarala.s28-Sep-08 22:34
sarala.s28-Sep-08 22:34 
AnswerRe: how to get the grid items??? Pin
whatUrunning.com28-Sep-08 22:47
whatUrunning.com28-Sep-08 22:47 
Questionshow image usin binding problem Pin
sepel28-Sep-08 22:32
sepel28-Sep-08 22:32 
AnswerRe: show image usin binding problem Pin
Ashfield28-Sep-08 23:10
Ashfield28-Sep-08 23:10 
AnswerRe: show image usin binding problem Pin
AlexeiXX329-Sep-08 13:47
AlexeiXX329-Sep-08 13:47 
GeneralRe: show image usin binding problem Pin
sepel29-Sep-08 19:07
sepel29-Sep-08 19:07 

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.