the proper OpenSSL use of Digest (without deprecation warnings from ruby 2.1+