Click here to Skip to main content
15,895,799 members
Home / Discussions / C#
   

C#

 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:10
Rob Philpott8-Apr-09 6:10 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 11:33
Le centriste8-Apr-09 11:33 
GeneralRe: Just for fun - what's the output of this? Pin
MNantu8-Apr-09 6:15
MNantu8-Apr-09 6:15 
QuestionSelected row in data grid Pin
mrkeivan8-Apr-09 5:08
mrkeivan8-Apr-09 5:08 
AnswerRe: Selected row in data grid Pin
he.david88-Apr-09 6:09
he.david88-Apr-09 6:09 
AnswerRe: Selected row in data grid Pin
Henry Minute8-Apr-09 11:07
Henry Minute8-Apr-09 11:07 
AnswerFound it ! Pin
mrkeivan9-Apr-09 7:28
mrkeivan9-Apr-09 7:28 
QuestionHow to check if a file is encrypted Pin
Russell Napier8-Apr-09 4:49
Russell Napier8-Apr-09 4:49 
Hello all,

I have written a simple application that allows me to encrypt / decrypt files using AES256 encryption. This part works. Smile | :) However, when using wildcards for decryption such as *.doc if you attempt to decrypt a file that was not previously encrypted a Crypto exception is thrown regarding invalid data length.

Is there a way to detect if a file is encrypted or not? I have searched and all I can find is the option of setting the encrypted attribute but this requires using the windows api and I wanted to avoid this.

Thanks for your help.

Russell
AnswerRe: How to check if a file is encrypted Pin
Xmen Real 8-Apr-09 5:01
professional Xmen Real 8-Apr-09 5:01 
AnswerRe: How to check if a file is encrypted Pin
0x3c08-Apr-09 5:02
0x3c08-Apr-09 5:02 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:10
Russell Napier8-Apr-09 5:10 
GeneralRe: How to check if a file is encrypted Pin
Dan Neely8-Apr-09 5:50
Dan Neely8-Apr-09 5:50 
GeneralRe: How to check if a file is encrypted Pin
Le centriste8-Apr-09 5:55
Le centriste8-Apr-09 5:55 
AnswerRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:15
sitebuilderLuc Pattyn8-Apr-09 5:15 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:19
Russell Napier8-Apr-09 5:19 
GeneralRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:32
sitebuilderLuc Pattyn8-Apr-09 5:32 
AnswerRe: How to check if a file is encrypted Pin
Dave Kreskowiak8-Apr-09 5:23
mveDave Kreskowiak8-Apr-09 5:23 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:26
Russell Napier8-Apr-09 5:26 
GeneralRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:33
sitebuilderLuc Pattyn8-Apr-09 5:33 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:36
Russell Napier8-Apr-09 5:36 
GeneralRe: How to check if a file is encrypted Pin
Dan Neely8-Apr-09 5:52
Dan Neely8-Apr-09 5:52 
QuestionPicture compression Pin
yasa8-Apr-09 4:33
yasa8-Apr-09 4:33 
AnswerRe: Picture compression Pin
Luc Pattyn8-Apr-09 5:29
sitebuilderLuc Pattyn8-Apr-09 5:29 
QuestionClient Server Pin
mrithula88-Apr-09 4:23
mrithula88-Apr-09 4:23 
QuestionProblem with SQL-Server Date Query Pin
der.flori8-Apr-09 4:08
der.flori8-Apr-09 4:08 

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.