Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Hash Function #81

Open
abskrj opened this issue Jan 22, 2024 · 1 comment
Open

File Hash Function #81

abskrj opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@abskrj
Copy link
Member

abskrj commented Jan 22, 2024

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

@abskrj abskrj added enhancement New feature or request good first issue Good for newcomers labels Jan 22, 2024
@abskrj
Copy link
Member Author

abskrj commented Jan 22, 2024

@Mr-Sunglasses lmk, if you have any questions

@abskrj abskrj assigned abskrj and unassigned Mr-Sunglasses Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants