Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Secure Password Storage | Protecting Sensitive Data
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python Security Best Practices

bookChallenge: Secure Password Storage

Task

Swipe to start coding

Write a function that accepts a password and returns its hash using a standard library hash function. The password itself must never be stored or returned.
Steps:

  • Accept a password as a parameter.
  • Hash the password using a standard library hash function.
  • Return the resulting hash as a string.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Secure Password Storage

Swipe to show menu

Task

Swipe to start coding

Write a function that accepts a password and returns its hash using a standard library hash function. The password itself must never be stored or returned.
Steps:

  • Accept a password as a parameter.
  • Hash the password using a standard library hash function.
  • Return the resulting hash as a string.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 6
single

single

some-alt