OpenSSL::Digest::Digest is deprecated in favour of OpenSSL::Digest (discouraged to use since 1.8 - https://github.com/ruby/ruby/blob/ruby_1_8_7/ext/openssl/lib/openssl/digest.rb#L51)