Skip to content

Added SHA512 support#68

Merged
paolahoff merged 3 commits intomconf:masterfrom
farhatahmad:sha512
Mar 11, 2026
Merged

Added SHA512 support#68
paolahoff merged 3 commits intomconf:masterfrom
farhatahmad:sha512

Conversation

@farhatahmad
Copy link
Copy Markdown
Contributor

@farhatahmad farhatahmad commented Mar 9, 2026

  • Replaces the current sha256 param with a more flexible algorithm param
  • Keeps legacy support by converting false -> sha1 and true -> sha2

Comment on lines +468 to +471
let(:method) { "join" }
let(:params) { { param1: "value1", param2: "value2" } }
let(:params_string) { params.map{ |k,v| "#{k}=" + URI.encode_www_form_component(v.to_s) unless k.nil? || v.nil? }.join("&") }
let(:checksum_param) { method.to_s + params_string + secret }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Centralized some of the arguments here to remove duplication

@paolahoff paolahoff merged commit 02a9216 into mconf:master Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants