Challenge: Secure Password Storage
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores 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?
Awesome!
Completion rate improved to 5.56
Challenge: Secure Password Storage
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single