ãã¡ã¤ã«ã®åºæå¤ãæ±ãã¦ç®¡çããã¦ããã°eææ¸æ³ã«ã対å¿ã§ããã£ã¦èãã¾ããã
require 'digest/md5' p Digest::MD5.hexdigest(File.open('ruby-1.8.5.tar.gz','rb').read)
ãã¡ã¤ã«ãµã¤ãºã大ããããã¨ãã¯
class Digest::Base def self.open(path) obj = new File.open(path, 'rb') {|f| buf = "" while f.read(256, buf) obj << buf end } obj end end p Digest::MD5.open("ruby-1.8.5.tar.gz").hexdigest # => "3fbb02294a8ca33d4684055adba5ed6f"
ã«ããã¨ã¤ã¤ãããã
ãã¡ã¤ã«åæããã¦ãããããã¡ã¤ã«åãé©å½ã«å¤æ´ãã¦ãã¾ã£ãã®ã§ããã¡ã¤ã«åã§åæã§ããªããªã£ãã®ã§ãããã·ã¥å¤ã§åæãããã¨ã«ãããJPEG1000ãã¡ã¤ã«ããããªã5åç¨åº¦ã§è¡ããããããã¯ã¼ã¯è¶ãã ã¨éãã£ãã
ãã£ã±ãããã¡ã¤ã«ãå ¨é¨èªã¿è¾¼ãã®ã¯éãå¦çã§ãããã