Digest::SHA256

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 のページを参照のこと。

メソッド:

dup
clone
digest
hexdigest
to_s
update(str)
self << str
self == md
self == str

Digest::Base のページを参照のこと。



rubyist ML