About My Friend System

Assignment Report

What tasks have you not attempted or not completed?

  • All required tasks have been completed

What special features have you done that we should know about?

  • Enhanced Security: Implemented password hashing with randomly generated salts using SHA-256
  • Password Storage: Passwords are stored as "salt:hash" format for secure verification
  • Bidirectional Friendships: When adding friends, both users' friend counts are updated automatically
  • Session Management: Secure session handling with user authentication checks
  • Input Validation: Comprehensive server-side validation for all forms

Which parts did you have trouble with?

  • Initially considered the complexity of bidirectional friend relationships in the database
  • Ensuring friend count updates work correctly when adding/removing friends
  • Implementing proper salt-based password hashing while maintaining compatibility

What would you like to do better next time?

  • Implement password strength requirements (minimum length, special characters)
  • Add email verification during signup
  • Create a password reset functionality
  • Add pagination for large friend lists
  • Implement search functionality to find friends by name
  • Add profile pictures and additional user information

What additional features did you add?

  • Enhanced Password Security: SHA-256 hashing with random salts (32 characters)
  • Better UX: Error messages persist with original input (except passwords)
  • Mutual Friendships: Friend relationships are automatically bidirectional
  • Real-time Updates: Friend counts update immediately after add/remove actions

Navigation