the proper OpenSSL use of Digest

This is the new way to use OpenSSL's Digest class without deprecation warnings from ruby 2.1+

In fact it's been the preferred method since ruby 1.8.x days.