Describe the solution you'd like
Create a Hash function in Golang, which takes a file name and URL params, and returns MD5 hash of it.
Approach
Append the key and values of params to the file name, sort the string and generate MD5 hash and return.
Step 1: fileName-key1:value1;key2:value2;........keyN:valueN
Step 2: sort the above string
Step 3: Calculate MD5 of the string and return
Describe the solution you'd like
Create a Hash function in Golang, which takes a file name and URL params, and returns MD5 hash of it.
Approach
Append the key and values of params to the file name, sort the string and generate MD5 hash and return.
Step 1:
fileName-key1:value1;key2:value2;........keyN:valueNStep 2: sort the above string
Step 3: Calculate MD5 of the string and return