Skip to content

File Hash Function #81

@abskrj

Description

@abskrj

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions