-
-
Notifications
You must be signed in to change notification settings - Fork 45
File Hash Function #81
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Type
Fields
Give feedbackNo fields configured for issues without a type.
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