Click here to Skip to main content
15,909,039 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Export crystal report to text file Pin
Shameel11-Nov-09 22:58
professionalShameel11-Nov-09 22:58 
QuestionWhy don't cookies from Amazon.com delivered to HttpWebResponse.Cookies? Pin
dims1210-Nov-09 22:45
dims1210-Nov-09 22:45 
AnswerRe: Why don't cookies from Amazon.com delivered to HttpWebResponse.Cookies? Pin
dims1211-Nov-09 20:05
dims1211-Nov-09 20:05 
Questionpls help me in crystal report Pin
rashidaee10-Nov-09 20:00
rashidaee10-Nov-09 20:00 
AnswerRe: pls help me in crystal report Pin
The Man from U.N.C.L.E.11-Nov-09 7:46
The Man from U.N.C.L.E.11-Nov-09 7:46 
QuestionReading From XML File Pin
Habib_78610-Nov-09 18:33
Habib_78610-Nov-09 18:33 
AnswerRe: Reading From XML File Pin
Not Active11-Nov-09 1:32
mentorNot Active11-Nov-09 1:32 
QuestionAsp.net decryption problem Pin
harikreddy10-Nov-09 0:38
harikreddy10-Nov-09 0:38 
Hi......Please Some One Help Me To Decryption.....i am using asp.net(3.5)code....my code is given below.....it showing one exception("System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.").....so plz someone help me that how i can overcome this problem.....my code is given below.....



Public Shared Function Decrypt(ByVal TextToBeDecrypted As String) As String
Dim RijndaelCipher As RijndaelManaged = New RijndaelManaged()
Dim Password As String = ide
Dim EncryptedData() As Byte = Convert.FromBase64String(TextToBeDecrypted)
Dim Salt() As Byte = Encoding.ASCII.GetBytes(Password.Length.ToString())
'Making of the key for decryption
Dim SecretKey As PasswordDeriveBytes = New PasswordDeriveBytes(Password, Salt)
'Creates a symmetric Rijndael decryptor object
Dim Decryptor As ICryptoTransform = RijndaelCipher.CreateDecryptor()
Dim memoryStream As MemoryStream = New MemoryStream(EncryptedData)
'Defines the cryptographics stream for decryption.THe stream contains decrpted data
Dim cryptoStream As CryptoStream = New CryptoStream(memoryStream, Decryptor, CryptoStreamMode.Read)
Dim PlainText() As Byte = New Byte(EncryptedData.Length) {}
/****Problem Create Here Below Line******/
Dim DecryptedCount As Integer = cryptoStream.Read(PlainText, 0, PlainText.Length)
/*****************************************************************/
memoryStream.Close()
cryptoStream.Close()
'Converting to string
Dim DecryptedData As String = Encoding.Unicode.GetString(PlainText, 0, DecryptedCount)
Return DecryptedData
End Function
AnswerRe: Asp.net decryption problem Pin
The Man from U.N.C.L.E.10-Nov-09 7:15
The Man from U.N.C.L.E.10-Nov-09 7:15 
Questioncd database [modified] Pin
mimi84699-Nov-09 20:31
mimi84699-Nov-09 20:31 
AnswerRe: cd database Pin
Pete O'Hanlon9-Nov-09 22:08
mvePete O'Hanlon9-Nov-09 22:08 
QuestionRe: cd database Pin
mimi846910-Nov-09 11:45
mimi846910-Nov-09 11:45 
AnswerRe: cd database Pin
Luc Pattyn10-Nov-09 13:29
sitebuilderLuc Pattyn10-Nov-09 13:29 
GeneralRe: cd database Pin
Mark Salsbery10-Nov-09 13:40
Mark Salsbery10-Nov-09 13:40 
AnswerRe: cd database Pin
Pete O'Hanlon10-Nov-09 22:55
mvePete O'Hanlon10-Nov-09 22:55 
AnswerRe: cd database Pin
The Man from U.N.C.L.E.10-Nov-09 7:10
The Man from U.N.C.L.E.10-Nov-09 7:10 
GeneralRe: cd database Pin
mimi846910-Nov-09 12:17
mimi846910-Nov-09 12:17 
GeneralRe: cd database Pin
The Man from U.N.C.L.E.11-Nov-09 0:25
The Man from U.N.C.L.E.11-Nov-09 0:25 
QuestionWindows Taskbar Information Pin
Tony Tullemans9-Nov-09 14:31
Tony Tullemans9-Nov-09 14:31 
AnswerRe: Windows Taskbar Information Pin
Eddy Vluggen10-Nov-09 5:13
professionalEddy Vluggen10-Nov-09 5:13 
QuestionVisual Studio 2008 Service Pack 1 Pin
Ejrr10859-Nov-09 8:30
Ejrr10859-Nov-09 8:30 
AnswerRe: Visual Studio 2008 Service Pack 1 Pin
Mark Salsbery9-Nov-09 10:26
Mark Salsbery9-Nov-09 10:26 
GeneralRe: Visual Studio 2008 Service Pack 1 Pin
Ejrr10859-Nov-09 11:38
Ejrr10859-Nov-09 11:38 
GeneralRe: Visual Studio 2008 Service Pack 1 Pin
Mark Salsbery9-Nov-09 11:55
Mark Salsbery9-Nov-09 11:55 
GeneralRe: Visual Studio 2008 Service Pack 1 Pin
Ejrr108513-Nov-09 4:04
Ejrr108513-Nov-09 4:04 

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.