developer coding user risk: medium
Secure User Login Code Generator
Instructs to write code featuring user login with passwords stored salted and protected strongly in the database, and robust security measures for both backend and frontend.
- Policy sensitive
- Human review
PROMPT
Yazılacak kod aşağıdaki yeteneklerde olacak. 1. kullanıcı girişi olacak ve kullanıcı şifresi veritabanında salt ve diğer güçlü şifre korumaları ile tutulacak. 2. backend ve frontend güçlü güvenlik sıkılaştırmalarına sahip olacak.
EXPECTED OUTPUT
- Format
- code
SUCCESS CRITERIA
- Implement user login functionality with passwords stored in database using salt and other strong protections.
- Ensure backend and frontend have strong security measures.
FAILURE MODES
- Vague specifications may lead to incomplete or insecure implementations.
- No programming language or framework specified.
- No details on exact security practices beyond high-level mentions.
CAVEATS
- Missing context
-
- Programming language and framework for backend/frontend.
- Database type.
- Specific security measures (e.g., hashing algorithm, CSRF protection, input validation).
- Output format (e.g., full application code, snippets, or architecture).
- Scope (e.g., full app or just authentication module).
- Ambiguities
-
- Unclear what 'other strong password protections' means beyond salting.
- Vague on what constitutes 'strong security tightenings' for backend and frontend.
QUALITY
- OVERALL
- 0.45
- CLARITY
- 0.75
- SPECIFICITY
- 0.40
- REUSABILITY
- 0.30
- COMPLETENESS
- 0.35
IMPROVEMENT SUGGESTIONS
- Specify tech stack: 'Use Node.js/Express for backend, React for frontend, PostgreSQL for database.'
- Detail security: 'Passwords hashed with bcrypt (including salt), implement JWT auth, helmet.js, CORS, input sanitization, HTTPS.'
- Add output requirements: 'Provide complete, runnable code with setup instructions and security explanations.'
- Define success criteria: 'Code must pass basic security scans like npm audit.'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expert developer coding
- Structured Python Production Code Generator developer coding
- Angular Standalone Directive Generator developer coding
- Pytest Unit Test Suite Generator developer coding
- Unity Architecture Specialist developer coding
- Web Typography CSS Generator developer coding
- VSCode CodeTour File Expert developer coding
- Senior Python Code Reviewer developer coding
- Structured Cross-Language Code Translator developer coding
- Multi-DB SQL Query Optimizer and Builder developer coding
- Base R Programming Reference Guide developer coding
- Flutter Map SDK Layer Bug Fixer developer coding
- Expert Mobile App Builder for iOS Android developer coding
- Scalable Backend Architect Expert developer coding
- Comprehensive TypeScript Codebase Reviewer developer coding
- Code Improvement and Refactoring Suggester developer coding
- Vercel SPA Blank Screen Diagnoser developer coding
- CLAUDE.md File Generator for AI Coders developer coding
- App Store Screenshots Gallery Generator developer coding
- Spring Boot SOLID Architect Specialist developer coding
- React SaaS Metrics Dashboard Generator developer coding
- Software Optimization Auditor developer coding
- Senior Frontend Task Checklist Architect developer coding
- POSIX Shell Script Developer with Checklists developer coding
- Astro v6 Strict Architecture Rules developer coding