Click here to Skip to main content
15,918,049 members
Home / Discussions / C#
   

C#

 
GeneralRe: Encryption and Decryption Problems Pin
John Fisher16-Jan-06 8:20
John Fisher16-Jan-06 8:20 
How is it that you get a multi-line file from code that only writes one line?

[edit]Oops, just looked back and saw the APPEND option when you open the file. That's the problem.

You need to write the entire file each time if you plan on encrypting and decrypting it. It appears that you accidentally read some of it because you are using the same key and initialization vector each time.[/edit]

John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.


-- modified at 14:20 Monday 16th January, 2006
GeneralRe: Encryption and Decryption Problems Pin
thepolishguy16-Jan-06 8:29
thepolishguy16-Jan-06 8:29 
GeneralRe: Encryption and Decryption Problems Pin
John Fisher16-Jan-06 8:33
John Fisher16-Jan-06 8:33 
GeneralRe: Encryption and Decryption Problems Pin
thepolishguy16-Jan-06 8:52
thepolishguy16-Jan-06 8:52 
GeneralRe: Encryption and Decryption Problems Pin
John Fisher16-Jan-06 9:09
John Fisher16-Jan-06 9:09 
AnswerRe: Encryption and Decryption Problems Pin
Guffa16-Jan-06 8:21
Guffa16-Jan-06 8:21 
QuestionPrevent Multiple Forms Pin
dimx216-Jan-06 4:49
dimx216-Jan-06 4:49 
AnswerRe: Prevent Multiple Forms Pin
exhaulted16-Jan-06 5:11
exhaulted16-Jan-06 5:11 
AnswerRe: Prevent Multiple Forms Pin
tarasn16-Jan-06 5:16
tarasn16-Jan-06 5:16 
GeneralRe: Prevent Multiple Forms Pin
dimx216-Jan-06 5:54
dimx216-Jan-06 5:54 
AnswerRe: Prevent Multiple Forms Pin
microsoc16-Jan-06 15:57
microsoc16-Jan-06 15:57 
AnswerRe: Prevent Multiple Forms Pin
Hesham Desouky16-Jan-06 22:17
Hesham Desouky16-Jan-06 22:17 
QuestionSize of the object Pin
vSoares16-Jan-06 4:49
professionalvSoares16-Jan-06 4:49 
AnswerRe: Size of the object Pin
John Fisher16-Jan-06 6:20
John Fisher16-Jan-06 6:20 
Questionclosing an application Pin
Mridang Agarwalla16-Jan-06 4:42
Mridang Agarwalla16-Jan-06 4:42 
AnswerRe: closing an application Pin
Glaxalg16-Jan-06 4:56
Glaxalg16-Jan-06 4:56 
Questionhow can a server write to a file located in the client PCs (5-15 units) Pin
batmanAgen16-Jan-06 4:28
batmanAgen16-Jan-06 4:28 
QuestionProgress bar question Pin
JGIS16-Jan-06 4:10
JGIS16-Jan-06 4:10 
AnswerRe: Progress bar question Pin
shopi3016-Jan-06 10:43
shopi3016-Jan-06 10:43 
GeneralRe: Progress bar question Pin
JGIS17-Jan-06 4:52
JGIS17-Jan-06 4:52 
QuestionGet rid of thread exited messages in VS 2003 Pin
Roland Bär16-Jan-06 4:07
Roland Bär16-Jan-06 4:07 
QuestionPropertyGrid TypeConverter Pin
Dylan van Heerden16-Jan-06 4:06
Dylan van Heerden16-Jan-06 4:06 
AnswerRe: PropertyGrid TypeConverter Pin
joe carbone16-Jan-06 4:17
joe carbone16-Jan-06 4:17 
GeneralRe: PropertyGrid TypeConverter Pin
Dylan van Heerden16-Jan-06 4:20
Dylan van Heerden16-Jan-06 4:20 
GeneralRe: PropertyGrid TypeConverter Pin
joe carbone16-Jan-06 4:37
joe carbone16-Jan-06 4:37 

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.