lib/yoti/ssl.rb in yoti-1.9.0 vs lib/yoti/ssl.rb in yoti-1.10.0

- old
+ new

@@ -40,11 +40,11 @@ # Sign message using a secure SHA256 hash and the private key # @param message [String] message to be signed # @return [String] signed message encoded in base 64 def get_secure_signature(message) - digest = OpenSSL::Digest::SHA256.new + digest = OpenSSL::Digest.new('SHA256') Base64.strict_encode64(private_key.sign(digest, message)) end # Uses the decrypted receipt key and the current user's iv to decode the text # @param key [String] base 64 decoded key @@ -58,10 +58,10 @@ ssl_decipher.iv = user_iv ssl_decipher.update(text) + ssl_decipher.final end # Reset and reload the Private Key used for SSL functions - # @deprecated 2.0.0 + # @deprecated will be removed in 2.0.0 def reload! @private_key = nil @pem = nil nil end