Compute SHA-1 Hash String
Write a function that returns the SHA-1 hash of a string as a 40-character hex string.
SHA1 Hash String
Implement a function that returns the SHA1 hexadecimal digest of an input string.
Showing 2 challenges · easy · Cryptography & Hashing
Cryptography & Hashing — Python coding challenges
What you will find here
This page lists cryptography & hashing challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.