Junior — Middle
Have you participated in developing your own user authentication system?
sobes.tech AI
Answer from AI
Yes, I participated in developing a custom user authentication system in C#. During the process, I implemented registration, login, password storage using hashing (e.g., BCrypt), as well as session and token management to maintain user state. An important aspect was security — protection against SQL injections, using HTTPS, and limiting login attempts.
Example of simple password hashing using BCrypt in C#:
using BCrypt.Net;
string password = "user_password";
string hashedPassword = BCrypt.HashPassword(password);
bool isValid = BCrypt.Verify("user_password", hashedPassword);