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

.NET (Core and Framework)

 
GeneralRe: .NET 2.0 Pin
snehaljogiya21-Jan-07 14:19
snehaljogiya21-Jan-07 14:19 
GeneralRe: .NET 2.0 Pin
snehaljogiya21-Jan-07 17:33
snehaljogiya21-Jan-07 17:33 
GeneralRe: .NET 2.0 Pin
Christian Graus21-Jan-07 18:40
protectorChristian Graus21-Jan-07 18:40 
GeneralRe: .NET 2.0 Pin
snehaljogiya21-Jan-07 21:51
snehaljogiya21-Jan-07 21:51 
GeneralRe: .NET 2.0 Pin
Christian Graus21-Jan-07 21:58
protectorChristian Graus21-Jan-07 21:58 
GeneralRe: .NET 2.0 Pin
shreekar21-Jan-07 22:40
shreekar21-Jan-07 22:40 
GeneralRe: .NET 2.0 Pin
snehaljogiya22-Jan-07 13:26
snehaljogiya22-Jan-07 13:26 
QuestionRijndael problems Pin
tidus8520-Jan-07 23:14
tidus8520-Jan-07 23:14 
Hello, I'm trying to send an encrypted picture with C#.
First I read the picture with a FileStream and get its bytes with this code:

public static byte[] Serializa(string Name)
{
FileInfo FichInfo = new FileInfo(Name);
if (!FichInfo.Exists)
return null;

MyFile = new FileStream(Name, System.IO.FileMode.Open);


BytesContent = new byte[MyFile.Length];


MyFile.Read(BytesContent, 0, (int)Fichero.Length);

MyFile.Flush();
MyFile.Close();
FichInfo = null;
return BytesContent;

}

Then I try to encrypt with Managed Rijndael and it throws an exception with the message "Length of the data to decrypt is invalid".
My code to encrypt is as follows:

public byte[] cifrar(byte[] obj)
{
return cifrador.TransformFinalBlock(obj, 0, obj.GetLength(0));


}

Thank you
AnswerRe: Rijndael problems Pin
Guffa21-Jan-07 0:09
Guffa21-Jan-07 0:09 
GeneralRe: Rijndael problems Pin
tidus8521-Jan-07 0:58
tidus8521-Jan-07 0:58 
AnswerRe: Rijndael problems Pin
Guffa21-Jan-07 8:28
Guffa21-Jan-07 8:28 
Questionusing the CheckedListBox controls Pin
Nikalas20-Jan-07 21:37
Nikalas20-Jan-07 21:37 
AnswerRe: using the CheckedListBox controls Pin
aSarafian23-Jan-07 1:18
aSarafian23-Jan-07 1:18 
GeneralRe: using the CheckedListBox controls Pin
Nikalas23-Jan-07 5:07
Nikalas23-Jan-07 5:07 
Questionexport to txt format [modified] Pin
Ronjon Kumar Ghosh20-Jan-07 19:25
Ronjon Kumar Ghosh20-Jan-07 19:25 
AnswerRe: export to txt format Pin
Christian Graus21-Jan-07 11:27
protectorChristian Graus21-Jan-07 11:27 
QuestionRe: export to txt format Pin
Ronjon Kumar Ghosh28-Jan-07 16:17
Ronjon Kumar Ghosh28-Jan-07 16:17 
Question.net frame work config error asp.net [modified] Pin
suriee20-Jan-07 3:47
suriee20-Jan-07 3:47 
QuestionReliability .NET Pin
sjordine19-Jan-07 4:57
sjordine19-Jan-07 4:57 
QuestionWhy value types can inherit System.Object members? Pin
Caetano19-Jan-07 4:30
Caetano19-Jan-07 4:30 
AnswerRe: Why value types can inherit System.Object members? Pin
Dave Kreskowiak19-Jan-07 5:02
mveDave Kreskowiak19-Jan-07 5:02 
Questionhow make my asp.net website browser independent Pin
rama charan19-Jan-07 0:31
rama charan19-Jan-07 0:31 
AnswerRe: how make my asp.net website browser independent Pin
Sylvester george29-Jan-07 1:40
Sylvester george29-Jan-07 1:40 
Questionclear crystalreportviewer data Pin
rama charan18-Jan-07 23:53
rama charan18-Jan-07 23:53 
QuestionCorrect way for constants Pin
shreekar18-Jan-07 23:12
shreekar18-Jan-07 23:12 

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.