LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-17-2006, 09:38 AM   #1
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Rep: Reputation: 15
Question hash bye md5 algorithm


i want to calculate the hash of file by using md5 algorithm in kernel space. hash of the file is based on inode of file and modification time.
so hw too do it??

thanks in advance .........
 
Old 02-17-2006, 10:43 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
by first searching with google...
 
Old 02-18-2006, 12:04 AM   #3
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks for the solution..
I have tried it...
but didnt got anything related.
Will i need to write same md5 algorithm with some modification ?
I need to concatenate the modification time of file to its inode number and
pass this string to md5 algorithm to calculate its hash .

Once again thanks.
 
Old 02-18-2006, 07:02 AM   #4
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
plzzzzzz.... reply something......
 
Old 02-18-2006, 01:31 PM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Well a google of md5 gave me, what I would have thought to be, a couple of good hits

MD5 unofficial
MD5 Command Line Utility
 
Old 02-18-2006, 11:54 PM   #6
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
See:
/usr/src/linux/Documentation/crypto/api-intro.txt
and
/usr/src/linux/crypto/*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need a hash algorithm ignoring input order Thinking Programming 3 07-12-2006 07:09 AM
need a hash algorithm ignoring input order Thinking Programming 1 01-02-2006 06:15 PM
Change Password Hash Algorithm Trano Linux - Security 1 08-23-2005 08:48 AM
MD5 hash value dominant Linux - Newbie 2 05-07-2004 04:52 AM


All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration