Click here to Skip to main content
15,894,337 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to AutoScrolling my richTextBox ? Pin
Giorgi Dalakishvili24-May-08 8:35
mentorGiorgi Dalakishvili24-May-08 8:35 
QuestionPlease tell me how to view structure of .mdb file? [modified] Pin
cuongmits24-May-08 7:15
cuongmits24-May-08 7:15 
QuestionHow to launch your application minimized in sidebar not in taskbar by pressing a certain key Pin
Sakshi Smriti24-May-08 6:52
Sakshi Smriti24-May-08 6:52 
AnswerRe: How to launch your application minimized in sidebar not in taskbar by pressing a certain key Pin
Ed.Poore24-May-08 9:21
Ed.Poore24-May-08 9:21 
AnswerRe: How to launch your application minimized in sidebar not in taskbar by pressing a certain key Pin
DaveyM6924-May-08 10:05
professionalDaveyM6924-May-08 10:05 
QuestionApplying Jena in .NET framework Pin
Asemeh24-May-08 5:38
Asemeh24-May-08 5:38 
QuestionEditable ComboBox in DataGridView Pin
Abdul Rahman Hamidy24-May-08 2:53
Abdul Rahman Hamidy24-May-08 2:53 
QuestionGet SHA-1 Hash of a File without opening it? Pin
Ian Uy24-May-08 2:20
Ian Uy24-May-08 2:20 
Good Day,

In the past, when I want to compute for the hash of a certain file, what I do is I open it first then compute for the HASH like so:

byte[] myfile = File.ReadAllBytes(path);
SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider();
Console.WriteLine(Convert.ToBase64String(SHA1.ComputeHash(myfile)));


In that code, you can see the presence of the File.ReadAllBytes reads the entire file.

Is there any other way to compute for the SHA-1 Hash of the file without actually opening it?

Thanks. Wink | ;)

It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

AnswerRe: Get SHA-1 Hash of a File without opening it? Pin
Ravi Bhavnani24-May-08 3:01
professionalRavi Bhavnani24-May-08 3:01 
AnswerRe: Get SHA-1 Hash of a File without opening it? Pin
User 665824-May-08 4:03
User 665824-May-08 4:03 
QuestionGet Files list from Remote server in a Directory Pin
Kumaran21cen24-May-08 2:09
Kumaran21cen24-May-08 2:09 
AnswerRe: Get Files list from Remote server in a Directory Pin
Ravi Bhavnani24-May-08 3:04
professionalRavi Bhavnani24-May-08 3:04 
AnswerRe: Get Files list from Remote server in a Directory Pin
Bert delaVega25-May-08 12:47
Bert delaVega25-May-08 12:47 
QuestionHow to get the linebreak between two lines Pin
Exelioindia24-May-08 1:26
Exelioindia24-May-08 1:26 
AnswerRe: How to get the linebreak between two lines Pin
Zoltan Balazs24-May-08 2:04
Zoltan Balazs24-May-08 2:04 
GeneralRe: How to get the linebreak between two lines Pin
PIEBALDconsult24-May-08 3:34
mvePIEBALDconsult24-May-08 3:34 
GeneralRe: How to get the linebreak between two lines Pin
Zoltan Balazs24-May-08 5:16
Zoltan Balazs24-May-08 5:16 
GeneralRe: How to get the linebreak between two lines Pin
Exelioindia24-May-08 9:01
Exelioindia24-May-08 9:01 
QuestionFileSystemWatcher class Pin
Bambor24-May-08 1:03
Bambor24-May-08 1:03 
AnswerRe: FileSystemWatcher class Pin
Giorgi Dalakishvili24-May-08 1:06
mentorGiorgi Dalakishvili24-May-08 1:06 
GeneralRe: FileSystemWatcher class Pin
Bambor24-May-08 5:15
Bambor24-May-08 5:15 
Questionwierd problem Pin
the pink jedi24-May-08 0:53
the pink jedi24-May-08 0:53 
AnswerRe: wierd problem Pin
the pink jedi24-May-08 1:18
the pink jedi24-May-08 1:18 
Questionmakeing mobile themes Pin
omar el halwagy24-May-08 0:03
omar el halwagy24-May-08 0:03 
Questionlistview. Pin
angels77723-May-08 23:45
angels77723-May-08 23:45 

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.