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