Create comprehensive security documentation including policies, guidelines, compliance requirements, and best practices for secure application development and operations.
// Password validation function validatePassword(password) { const minLength = 12; const requirements = { length: password.length >= minLength, uppercase: /[A-Z]/.test(password), lowercase: /[a-z]/.test(password), number: /[0-9]/.test(password), special: /[!@#$%^&(),.?":{}|<>]/.test(password) };
// MFA verification async function verifyMFA(userId, token) { const user = await User.findById(userId); const secret = user.twoFactorSecret;
Создавайте политики безопасности, рекомендации, документацию по обеспечению соответствия и передовые методы обеспечения безопасности. Используйте при документировании политик безопасности, требований соответствия или рекомендаций по безопасности. Источник: aj-geddes/useful-ai-prompts.