Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

In the Flickr API docs, you need to find the MD5 sum of a string to generate the [api_sig] value.

How does one go about generating an MD5 sum from a string?

Flickr's example:

string: 000005fab4534d05api_key9a0554259914a86fb9e7eb014e4e5d52permswrite

MD5 sum: a02506b31c1cd46c2e0b6380fb94eb3d

1 Answer

0 votes
by (106k points)

To get MD5 sum of a string you can use python’s hashlib below is the code fpr the same:-

import hashlib 

m = hashlib.md5() m.update("000005fab4534d05api_key9a0554259914a86fb9e7eb014e4e5d52permswrite") 

print m.hexdigest()

Output: a02506b31c1cd46c2e0b6380fb94eb3d

Related questions

0 votes
1 answer
asked Sep 23, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...