FIPS PUB 180-1に記述されているNIST (the US' National Institute of Standards and Technology) の SHA-1 Secure Hash Algorithmを実装するクラス。
require 'digest/sha1'
Digest::SHA1.new([str])Digest::SHA1.digest(str)Digest::SHA1.hexdigest(str)Digest::Base のページを参照のこと。
dupclonedigesthexdigestto_supdate(str)self << strself == mdself == strDigest::Base のページを参照のこと。