all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* md5 checksum of a img file, or get the value of 100th byte
@ 2008-06-05 11:29 Xah
  2008-06-05 19:17 ` Eli Zaretskii
       [not found] ` <mailman.12717.1212693595.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 12+ messages in thread
From: Xah @ 2008-06-05 11:29 UTC (permalink / raw)
  To: help-gnu-emacs

I have few thousand image files, and i need to compute a unique id for
each... something like md5 checksum.

I noticed that elisp has a md5 function that does that, but it takes a
buffer as argument. Does this mean that i have to create a buffer
first by opening the image file? Would this be very inefficient? since
all i need is to build a hash table of the image files, with checksum
as id and file path(s) as value.

or, is there some other way? Perhaps, i can use the image file size
together with a list of byte values at several file stream locations,
as the unique id... this should be sufficient for my purposes but how
do i get the value of, say, the 1000th byte?

Thanks in advance.

  Xah
  xah@xahlee.org
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-06-09 15:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 11:29 md5 checksum of a img file, or get the value of 100th byte Xah
2008-06-05 19:17 ` Eli Zaretskii
     [not found] ` <mailman.12717.1212693595.18990.help-gnu-emacs@gnu.org>
2008-06-06 14:44   ` Ted Zlatanov
2008-06-06 16:33     ` Eli Zaretskii
     [not found]     ` <mailman.12786.1212770026.18990.help-gnu-emacs@gnu.org>
2008-06-06 18:55       ` Ted Zlatanov
2008-06-06 20:07         ` Eli Zaretskii
     [not found]         ` <mailman.12802.1212782926.18990.help-gnu-emacs@gnu.org>
2008-06-06 22:45           ` Ted Zlatanov
2008-06-07  6:34             ` Eli Zaretskii
     [not found]             ` <mailman.12833.1212820449.18990.help-gnu-emacs@gnu.org>
2008-06-09 15:04               ` Ted Zlatanov
2008-06-09 15:58                 ` Eli Zaretskii
2008-06-07  0:03           ` Tim X
2008-06-09 15:15             ` Ted Zlatanov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.