lib/cryptomus/signature.rb in cryptomus-0.1.0 vs lib/cryptomus/signature.rb in cryptomus-0.1.1

- old
+ new

@@ -9,10 +9,10 @@ # https://doc.cryptomus.com/getting-started/request-format # @param raw_body [String] # @return [String] def generate(raw_body) - raw_body_encoded = Base64.encode64(raw_body || '') + raw_body_encoded = Base64.strict_encode64(raw_body || '') Digest::MD5.hexdigest("#{raw_body_encoded}#{Cryptomus.config.api_key}") end end end