ついでだからRubyでもSHA256

たまに使うので.

require "digest/sha2"
string = "さーーーーこいっ!"

puts Digest::SHA256::hexdigest(string)
puts Digest::SHA512::hexdigest(string)