Click here to Skip to main content
15,901,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to connect Remote Database with ASP.NET application Pin
Vasudevan Deepak Kumar7-Jun-07 20:57
Vasudevan Deepak Kumar7-Jun-07 20:57 
AnswerRe: how to connect Remote Database with ASP.NET application Pin
Gamzun7-Jun-07 21:05
Gamzun7-Jun-07 21:05 
GeneralRe: how to connect Remote Database with ASP.NET application Pin
Elena20067-Jun-07 21:17
Elena20067-Jun-07 21:17 
GeneralRe: how to connect Remote Database with ASP.NET application Pin
Gamzun7-Jun-07 21:57
Gamzun7-Jun-07 21:57 
Questiontooltip on datagrid column header Pin
deepalititi7-Jun-07 20:42
deepalititi7-Jun-07 20:42 
AnswerRe: tooltip on datagrid column header Pin
Chetan Ranpariya7-Jun-07 20:50
Chetan Ranpariya7-Jun-07 20:50 
QuestionStrange Report Download Issue Pin
Vasudevan Deepak Kumar7-Jun-07 20:42
Vasudevan Deepak Kumar7-Jun-07 20:42 
Questionencrypyion and decrypyion problem using Enterprise Library Pin
Vinod vbv7-Jun-07 20:22
Vinod vbv7-Jun-07 20:22 
i am using microsoft.practices.security.cryptography in VS 2.0

my code is as follows....

Dim encryptedContentsBase64 As String encryptedContentsBase64 = Cryptographer.EncryptSymmetric("symmProvider", "SensitiveData")
' Decrypt the base64 encoded string
Dim readableString As String readableString = Cryptographer.DecryptSymmetric("symmProvider", encryptedContentsBase64)



this is wroking when the decrypt string is large( length more than 7)

but when i am using the length less than 7

Smile | :) i am getting error page like this...

System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid. at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at Microsoft.Practices.EnterpriseLibrary.Common.Cryptography.SymmetricCryptographer.Transform(ICryptoTransform transform, Byte[] buffer) at Microsoft.Practices.EnterpriseLibrary.Common.Cryptography.SymmetricCryptographer.Decrypt(Byte[] encryptedText) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider.Decrypt(Byte[] ciphertext) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext, ConfigurationContext context) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext)

thanking u in advance

eagerly waiting for the solution..

Confused | :confused:

Vinod
AnswerRe: encrypyion and decrypyion problem using Enterprise Library Pin
Venkatesh Mookkan8-Jun-07 1:39
Venkatesh Mookkan8-Jun-07 1:39 
GeneralRe: encrypyion and decrypyion problem using Enterprise Library Pin
Vinod vbv8-Jun-07 2:31
Vinod vbv8-Jun-07 2:31 
QuestionHow to compatible Internet Explorer with the Mozilla Firefox Pin
.NET- India 7-Jun-07 20:14
.NET- India 7-Jun-07 20:14 
AnswerRe: How to compatible Internet Explorer with the Mozilla Firefox Pin
Biju Sam7-Jun-07 20:23
Biju Sam7-Jun-07 20:23 
QuestionCompare Adjacent Rows of a GridView Control Pin
Sridhar Narayanan7-Jun-07 20:08
Sridhar Narayanan7-Jun-07 20:08 
Questionjavascript doubt Pin
saravanan057-Jun-07 19:36
saravanan057-Jun-07 19:36 
AnswerRe: javascript doubt Pin
Sylvester george7-Jun-07 20:11
Sylvester george7-Jun-07 20:11 
AnswerRe: javascript doubt Pin
Biju Sam7-Jun-07 20:15
Biju Sam7-Jun-07 20:15 
AnswerRe: javascript doubt [modified] Pin
Chetan Ranpariya7-Jun-07 20:20
Chetan Ranpariya7-Jun-07 20:20 
Questiondetailsview as item template in datalist,asp.net2.0+c# Pin
regin7-Jun-07 19:29
regin7-Jun-07 19:29 
AnswerRe: detailsview as item template in datalist,asp.net2.0+c# Pin
Sathesh Sakthivel7-Jun-07 19:33
Sathesh Sakthivel7-Jun-07 19:33 
GeneralRe: detailsview as item template in datalist,asp.net2.0+c# Pin
regin7-Jun-07 21:01
regin7-Jun-07 21:01 
QuestionConverting .html to .aspx Pin
SPRC7-Jun-07 19:09
SPRC7-Jun-07 19:09 
AnswerRe: Converting .html to .aspx Pin
Expert Coming7-Jun-07 19:15
Expert Coming7-Jun-07 19:15 
AnswerRe: Converting .html to .aspx Pin
Christian Graus7-Jun-07 20:36
protectorChristian Graus7-Jun-07 20:36 
QuestionObjectDataSource Issue Pin
Expert Coming7-Jun-07 19:07
Expert Coming7-Jun-07 19:07 
QuestionHow to store and get private key in certificates? Pin
zechariah7-Jun-07 18:46
zechariah7-Jun-07 18:46 

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.