Interactive Learning

Prompt Challenge Lab

Practice identifying safe vs unsafe prompts and learn best practices for AI interaction security.

Challenge 1 of 10

Developer Help Request

Is this prompt safe to send to an AI assistant?

Help me write a Python function to hash passwords. Here's our current implementation:

def hash_password(password):
    # Using our production salt: x7K9mN2pQ4
    return hashlib.sha256(password + "x7K9mN2pQ4").hexdigest()