lib/api_auth/helpers.rb in api-auth-2.4.1 vs lib/api_auth/helpers.rb in api-auth-2.5.0
- old
+ new
@@ -2,11 +2,11 @@
module Helpers # :nodoc:
def b64_encode(string)
Base64.strict_encode64(string)
end
- def md5_base64digest(string)
- Digest::MD5.base64digest(string)
+ def sha256_base64digest(string)
+ Digest::SHA256.base64digest(string)
end
# Capitalizes the keys of a hash
def capitalize_keys(hsh)
capitalized_hash = {}