LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08: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, 09: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-17-2006, 11:04 PM   #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, 06:02 AM   #4
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
plzzzzzz.... reply something......
 
Old 02-18-2006, 12: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, 10: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



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 06:09 AM
need a hash algorithm ignoring input order Thinking Programming 1 01-02-2006 05:15 PM
Change Password Hash Algorithm Trano Linux - Security 1 08-23-2005 07:48 AM
MD5 hash value dominant Linux - Newbie 2 05-07-2004 03:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:08 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
Open Source Consulting | Domain Registration